1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Return failed instead of raising an error when an include_vars file is missing

Fixes #18508
This commit is contained in:
James Cammarata 2016-11-18 09:28:13 -06:00
parent f12d5b01c7
commit 937d872f4b

View file

@ -137,8 +137,8 @@ class ActionModule(ActionBase):
results.update(updated_results) results.update(updated_results)
except AnsibleError as e: except AnsibleError as e:
failed = True
err_msg = to_native(e) err_msg = to_native(e)
raise AnsibleError(err_msg)
if self.return_results_as_name: if self.return_results_as_name:
scope = dict() scope = dict()