Commit 9a586c35 by James Cammarata

Properly catch AnsibleError and not all errors

parent 2b723c61
...@@ -209,7 +209,7 @@ class VariableManager: ...@@ -209,7 +209,7 @@ class VariableManager:
break break
else: else:
raise AnsibleError("vars file %s was not found" % vars_file_item) raise AnsibleError("vars file %s was not found" % vars_file_item)
except: except AnsibleError, e:
# FIXME: get_vars should probably be taking a flag to determine # FIXME: get_vars should probably be taking a flag to determine
# whether or not vars files errors should be fatal at this # whether or not vars files errors should be fatal at this
# stage, or just base it on whether a host was specified? # stage, or just base it on whether a host was specified?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment