mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
xfconf: fix setting of boolean values (#5007)
This commit is contained in:
parent
76b235c6b3
commit
9290381bea
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue