From e72d1e995ff0414ba8fc1978507b13e733ad057c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 4 Oct 2016 11:47:48 -0400 Subject: [PATCH] fixed usage of incorrect exception class fixes #17895 --- lib/ansible/playbook/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/helpers.py b/lib/ansible/playbook/helpers.py index 412c746d6e4..065a9587d38 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,