diff options
author | Alan Descoins <dekked@gmail.com> | 2013-09-07 00:28:39 -0300 |
---|---|---|
committer | Alan Descoins <dekked@gmail.com> | 2013-09-07 00:28:39 -0300 |
commit | ebd8e262d3c139c3f9643da1b466147ffec8cdc5 (patch) | |
tree | 9b5d89b160e2a7d4b574ce22ff5259747d9dfee6 /bin | |
parent | 6e9fa5019f3d43500d6ad65bccf4291ffc550320 (diff) | |
download | ansible-ebd8e262d3c139c3f9643da1b466147ffec8cdc5.tar.gz |
Fixed -e "" on ansible-playbook.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-playbook | 2 |
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: |