Merge "Quote $@ in ansible-playbook-command.sh"

This commit is contained in:
Zuul 2018-02-14 15:51:33 +00:00 committed by Gerrit Code Review
commit 0eb3341486
2 changed files with 6 additions and 1 deletions

View 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.

View File

@ -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)