Make it such that modules with no arguments work fine in playbooks (like ping, which is
non-sensical, but also if the user wrote a module that took none)pull/4420/head
parent
c0c691089d
commit
3d72260887
|
@ -378,7 +378,9 @@ class PlayBook(object):
|
||||||
|
|
||||||
tokens = action.split(None, 1)
|
tokens = action.split(None, 1)
|
||||||
module_name = tokens[0]
|
module_name = tokens[0]
|
||||||
module_args = tokens[1]
|
module_args = ''
|
||||||
|
if len(tokens) > 1:
|
||||||
|
module_args = tokens[1]
|
||||||
|
|
||||||
# include task specific vars
|
# include task specific vars
|
||||||
module_vars = task.get('vars')
|
module_vars = task.get('vars')
|
||||||
|
|
Loading…
Reference in New Issue