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/191/head
Michael DeHaan 12 years ago
parent c0c691089d
commit 3d72260887

@ -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')

Loading…
Cancel
Save