Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the exception name ( AnsibleParserError, not AnsibleParsingError ) #10711

Merged
merged 1 commit into from
Apr 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion v2/ansible/playbook/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _load_vars(self, attr, ds):
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):
'''
Expand Down
2 changes: 1 addition & 1 deletion v2/ansible/plugins/strategies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _load_included_file(self, included_file):

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(
Expand Down