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:
parent
041824b98e
commit
4a1d86c47e
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/xfconf_add_uint_type.yml
Normal file
2
changelogs/fragments/xfconf_add_uint_type.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- xfconf - add support for ``uint`` type (https://github.com/ansible-collections/community.general/pull/696).
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue