From ebd8e262d3c139c3f9643da1b466147ffec8cdc5 Mon Sep 17 00:00:00 2001 From: Alan Descoins Date: Sat, 7 Sep 2013 00:28:39 -0300 Subject: [PATCH] Fixed -e "" on ansible-playbook. --- bin/ansible-playbook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-playbook b/bin/ansible-playbook index 27274227fbb..545f07f587a 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: