mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
make sure that options are quoted, as people can add a shell
script there with a comma that would produce invalid configuration upon being wrote again
This commit is contained in:
parent
7672e9fef8
commit
951a91723d
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ def writekeys(module, filename, keys):
|
|||
option_strings = []
|
||||
for option_key in sorted(options.keys()):
|
||||
if options[option_key]:
|
||||
option_strings.append("%s=%s" % (option_key, options[option_key]))
|
||||
option_strings.append("%s=\"%s\"" % (option_key, options[option_key]))
|
||||
else:
|
||||
option_strings.append("%s " % option_key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue