mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
show errors when missing vars file or when there is syntax issue in the file
fixes #11945
This commit is contained in:
@@ -215,11 +215,6 @@ 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 AnsibleError, e:
|
|
||||||
# FIXME: get_vars should probably be taking a flag to determine
|
|
||||||
# whether or not vars files errors should be fatal at this
|
|
||||||
# stage, or just base it on whether a host was specified?
|
|
||||||
pass
|
|
||||||
except UndefinedError, e:
|
except UndefinedError, e:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user