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)
This commit is contained in:
Michael DeHaan 2012-04-21 11:26:48 -04:00
parent c0c691089d
commit 3d72260887

View file

@ -378,7 +378,9 @@ class PlayBook(object):
tokens = action.split(None, 1)
module_name = tokens[0]
module_args = tokens[1]
module_args = ''
if len(tokens) > 1:
module_args = tokens[1]
# include task specific vars
module_vars = task.get('vars')