1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added uint type to xfconf module (#696)

* Added uint type to xfconf module

* Update changelogs/fragments/xfconf_add_uint_type.yml

Updated PR number in changelog

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Pierre Roudier <pierre.roudier@ticksmith.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Pierre Roudier 2020-07-28 07:40:40 +00:00 committed by GitHub
parent 041824b98e
commit 4a1d86c47e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- xfconf - add support for ``uint`` type (https://github.com/ansible-collections/community.general/pull/696).

View file

@ -44,7 +44,7 @@ options:
For array mode, use a list of types.
type: list
elements: str
choices: [ int, bool, float, string ]
choices: [ int, uint, bool, float, string ]
state:
description:
- The action to take upon the property/value.
@ -124,7 +124,7 @@ class XfConfProperty(object):
GET = "get"
RESET = "absent"
VALID_STATES = (SET, GET, RESET)
VALID_VALUE_TYPES = ('int', 'bool', 'float', 'string')
VALID_VALUE_TYPES = ('int', 'uint', 'bool', 'float', 'string')
previous_value = None
is_array = None