mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
(cherry picked from commit 9290381bea
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
aab93949e1
commit
9dc82793c4
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/4999-xfconf-bool.yml
Normal file
2
changelogs/fragments/4999-xfconf-bool.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "xfconf - fix setting of boolean values (https://github.com/ansible-collections/community.general/issues/4999, https://github.com/ansible-collections/community.general/pull/5007)."
|
|
@ -14,7 +14,7 @@ def _values_fmt(values, value_types):
|
||||||
result = []
|
result = []
|
||||||
for value, value_type in zip(values, value_types):
|
for value, value_type in zip(values, value_types):
|
||||||
if value_type == 'bool':
|
if value_type == 'bool':
|
||||||
value = boolean(value)
|
value = 'true' if boolean(value) else 'false'
|
||||||
result.extend(['--type', '{0}'.format(value_type), '--set', '{0}'.format(value)])
|
result.extend(['--type', '{0}'.format(value_type), '--set', '{0}'.format(value)])
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue