Commit 1566a90f by Michael Scherer

Fix the exception name ( AnsibleParserError, not AnsibleParsingError )

parent 53177a9b
...@@ -144,7 +144,7 @@ class Play(Base, Taggable, Become): ...@@ -144,7 +144,7 @@ class Play(Base, Taggable, Become):
else: else:
raise ValueError raise ValueError
except 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): def _load_tasks(self, attr, ds):
''' '''
......
...@@ -303,7 +303,7 @@ class StrategyBase: ...@@ -303,7 +303,7 @@ class StrategyBase:
data = self._loader.load_from_file(included_file._filename) data = self._loader.load_from_file(included_file._filename)
if not isinstance(data, list): 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) is_handler = isinstance(included_file._task, Handler)
block_list = load_list_of_blocks( block_list = load_list_of_blocks(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment