mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
xfconf: fix setting of boolean values (#5007)
This commit is contained in:
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 = []
|
||||
for value, value_type in zip(values, value_types):
|
||||
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)])
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user