Merge pull request #10711 from mscherer/fix_wrong_name_parsererror
Fix the exception name ( AnsibleParserError, not AnsibleParsingError )
This commit is contained in:
commit
f25f2d9626
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
'''
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue