Merge pull request #14214 from dvarrazzo/conflicting-actions-message

Better "conflicting action statements" message
This commit is contained in:
James Cammarata 2016-02-03 22:55:35 -05:00
commit 8ca8459af5

View file

@ -287,7 +287,7 @@ class ModuleArgsParser:
if item in module_loader or item == 'meta' or item == 'include':
# finding more than one module name is a problem
if action is not None:
raise AnsibleParserError("conflicting action statements", obj=self._task_ds)
raise AnsibleParserError("conflicting action statements (%s, %s)" % (action, item), obj=self._task_ds)
action = item
thing = value
action, args = self._normalize_parameters(value, action=action, additional_args=additional_args)