mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
xfconf: added missing value types (#4534)
* xfconf: added missing value types * added changelog fragment * Update plugins/modules/system/xfconf.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
51a68517ce
commit
a2bfb96213
2 changed files with 11 additions and 10 deletions
2
changelogs/fragments/4534-xfconf-added-value-types.yaml
Normal file
2
changelogs/fragments/4534-xfconf-added-value-types.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- xfconf - added missing value types ``char``, ``uchar``, ``int64`` and ``uint64`` (https://github.com/ansible-collections/community.general/pull/4534).
|
|
@ -57,9 +57,10 @@ options:
|
||||||
element in the array, then I(force_array=true) must be used to ensure
|
element in the array, then I(force_array=true) must be used to ensure
|
||||||
that C(xfconf-query) will interpret the value as an array rather than a
|
that C(xfconf-query) will interpret the value as an array rather than a
|
||||||
scalar.
|
scalar.
|
||||||
|
- Support for C(uchar), C(char), C(uint64), and C(int64) has been added in community.general 4.8.0.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
choices: [ int, uint, bool, float, double, string ]
|
choices: [ string, int, double, bool, uint, uchar, char, uint64, int64, float ]
|
||||||
state:
|
state:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
@ -177,15 +178,13 @@ class XFConfProperty(CmdStateModuleHelper):
|
||||||
facts_params = ('property', 'channel', 'value')
|
facts_params = ('property', 'channel', 'value')
|
||||||
module = dict(
|
module = dict(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default="present",
|
state=dict(type='str', choices=("present", "get", "absent"), default="present"),
|
||||||
choices=("present", "get", "absent"),
|
channel=dict(type='str', required=True),
|
||||||
type='str'),
|
property=dict(type='str', required=True),
|
||||||
channel=dict(required=True, type='str'),
|
value_type=dict(type='list', elements='str',
|
||||||
property=dict(required=True, type='str'),
|
choices=('string', 'int', 'double', 'bool', 'uint', 'uchar', 'char', 'uint64', 'int64', 'float')),
|
||||||
value_type=dict(required=False, type='list',
|
value=dict(type='list', elements='raw'),
|
||||||
elements='str', choices=('int', 'uint', 'bool', 'float', 'double', 'string')),
|
force_array=dict(type='bool', default=False, aliases=['array']),
|
||||||
value=dict(required=False, type='list', elements='raw'),
|
|
||||||
force_array=dict(default=False, type='bool', aliases=['array']),
|
|
||||||
disable_facts=dict(type='bool', default=True),
|
disable_facts=dict(type='bool', default=True),
|
||||||
),
|
),
|
||||||
required_if=[('state', 'present', ['value', 'value_type'])],
|
required_if=[('state', 'present', ['value', 'value_type'])],
|
||||||
|
|
Loading…
Reference in a new issue