mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6826 from bob-smith/debconf-parsing
debconf correctly quote strings
This commit is contained in:
commit
71061479a0
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ def set_selection(module, pkg, question, vtype, value, unseen):
|
|||
data = ' '.join([ question, vtype, value ])
|
||||
|
||||
setsel = module.get_bin_path('debconf-set-selections', True)
|
||||
cmd = ["echo '%s %s' |" % (pipes.quote(pkg), pipes.quote(data)), setsel]
|
||||
cmd = ["echo %s %s |" % (pipes.quote(pkg), pipes.quote(data)), setsel]
|
||||
if unseen:
|
||||
cmd.append('-u')
|
||||
|
||||
|
|
Loading…
Reference in a new issue