Merge "Quote $@ in ansible-playbook-command.sh"
This commit is contained in:
commit
0eb3341486
5
releasenotes/notes/quote-$@-a3d47106c9b7eeb6.yaml
Normal file
5
releasenotes/notes/quote-$@-a3d47106c9b7eeb6.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- The generated ansible-playbook-command.sh now has quotes around $@ so
|
||||
that the value can be passed through to ansible-playbook with spaces or
|
||||
other characters requiring quotes.
|
@ -462,7 +462,7 @@ class AnsiblePlaybookAction(base.TripleOAction):
|
||||
f.write('%s="%s"\n' % (var, env_variables[var]))
|
||||
f.write('\n')
|
||||
f.write(' '.join(command))
|
||||
f.write(' $@')
|
||||
f.write(' "$@"')
|
||||
f.write('\n')
|
||||
|
||||
os.chmod(command_path, 0o750)
|
||||
|
Loading…
x
Reference in New Issue
Block a user