mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 03:42:45 +00:00
If task action is invalid, output the name and action.
This commit is contained in:
@@ -71,7 +71,7 @@ class Task(object):
|
||||
# split the action line into a module name + arguments
|
||||
tokens = self.action.split(None, 1)
|
||||
if len(tokens) < 1:
|
||||
raise errors.AnsibleError("invalid/missing action in task")
|
||||
raise errors.AnsibleError("invalid/missing action in task.\n name: %s\n action: %s" % (self.name, self.action))
|
||||
self.module_name = tokens[0]
|
||||
self.module_args = ''
|
||||
if len(tokens) > 1:
|
||||
|
||||
Reference in New Issue
Block a user