mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Report only name in task error, all on one line
This commit is contained in:
parent
fa9fe9d246
commit
aed6ee7f74
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Task(object):
|
||||||
# split the action line into a module name + arguments
|
# split the action line into a module name + arguments
|
||||||
tokens = self.action.split(None, 1)
|
tokens = self.action.split(None, 1)
|
||||||
if len(tokens) < 1:
|
if len(tokens) < 1:
|
||||||
raise errors.AnsibleError("invalid/missing action in task.\n name: %s\n action: %s" % (self.name, self.action))
|
raise errors.AnsibleError("invalid/missing action in task. name: %s" % self.name)
|
||||||
self.module_name = tokens[0]
|
self.module_name = tokens[0]
|
||||||
self.module_args = ''
|
self.module_args = ''
|
||||||
if len(tokens) > 1:
|
if len(tokens) > 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue