summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlan Descoins <dekked@gmail.com>2013-09-07 00:28:39 -0300
committerAlan Descoins <dekked@gmail.com>2013-09-07 00:28:39 -0300
commitebd8e262d3c139c3f9643da1b466147ffec8cdc5 (patch)
tree9b5d89b160e2a7d4b574ce22ff5259747d9dfee6 /bin
parent6e9fa5019f3d43500d6ad65bccf4291ffc550320 (diff)
downloadansible-ebd8e262d3c139c3f9643da1b466147ffec8cdc5.tar.gz
Fixed -e "" on ansible-playbook.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-playbook2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook
index 27274227fb..545f07f587 100755
--- a/bin/ansible-playbook
+++ b/bin/ansible-playbook
@@ -103,7 +103,7 @@ def main(args):
if extra_vars_opt.startswith("@"):
# Argument is a YAML file (JSON is a subset of YAML)
extra_vars = utils.combine_vars(extra_vars, utils.parse_yaml_from_file(extra_vars_opt[1:]))
- elif extra_vars_opt[0] in '[{':
+ elif extra_vars_opt and extra_vars_opt[0] in '[{':
# Arguments as YAML
extra_vars = utils.combine_vars(extra_vars, utils.parse_yaml(extra_vars_opt))
else: