From 1566a90fcd56bdc61cad83939e526f012d7ecda3 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 14 Apr 2015 16:36:39 -0400 Subject: [PATCH] Fix the exception name ( AnsibleParserError, not AnsibleParsingError ) --- v2/ansible/playbook/play.py | 2 +- v2/ansible/plugins/strategies/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/ansible/playbook/play.py b/v2/ansible/playbook/play.py index fef40568ab..e96e782677 100644 --- a/v2/ansible/playbook/play.py +++ b/v2/ansible/playbook/play.py @@ -144,7 +144,7 @@ class Play(Base, Taggable, Become): else: raise ValueError except ValueError: - raise AnsibleParsingError("Vars in a playbook must be specified as a dictionary, or a list of dictionaries", obj=ds) + raise AnsibleParserError("Vars in a playbook must be specified as a dictionary, or a list of dictionaries", obj=ds) def _load_tasks(self, attr, ds): ''' diff --git a/v2/ansible/plugins/strategies/__init__.py b/v2/ansible/plugins/strategies/__init__.py index 9b26ff23a7..d01360463b 100644 --- a/v2/ansible/plugins/strategies/__init__.py +++ b/v2/ansible/plugins/strategies/__init__.py @@ -303,7 +303,7 @@ class StrategyBase: data = self._loader.load_from_file(included_file._filename) if not isinstance(data, list): - raise AnsibleParsingError("included task files must contain a list of tasks", obj=included_file._task._ds) + raise AnsibleParserError("included task files must contain a list of tasks", obj=included_file._task._ds) is_handler = isinstance(included_file._task, Handler) block_list = load_list_of_blocks(