diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-10-04 11:47:48 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-10-04 11:52:28 -0400 |
commit | e72d1e995ff0414ba8fc1978507b13e733ad057c (patch) | |
tree | ce21cfc5861d02309cc9fc9fc4b265a0100765e9 | |
parent | 2a234c1ff97406692968f1aa4e22b27fbdf9d574 (diff) | |
download | ansible-e72d1e995ff0414ba8fc1978507b13e733ad057c.tar.gz |
fixed usage of incorrect exception class
fixes #17895
-rw-r--r-- | lib/ansible/playbook/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/helpers.py b/lib/ansible/playbook/helpers.py index 412c746d6e..065a9587d3 100644 --- a/lib/ansible/playbook/helpers.py +++ b/lib/ansible/playbook/helpers.py @@ -178,7 +178,7 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h if data is None: return [] elif not isinstance(data, list): - raise AnsibleError("included task files must contain a list of tasks", obj=data) + raise AnsibleParserError("included task files must contain a list of tasks", obj=data) # since we can't send callbacks here, we display a message directly in # the same fashion used by the on_include callback. We also do it here, |