Commit 3d722608 by Michael DeHaan

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)
parent c0c69108
...@@ -378,6 +378,8 @@ class PlayBook(object): ...@@ -378,6 +378,8 @@ class PlayBook(object):
tokens = action.split(None, 1) tokens = action.split(None, 1)
module_name = tokens[0] module_name = tokens[0]
module_args = ''
if len(tokens) > 1:
module_args = tokens[1] module_args = tokens[1]
# include task specific vars # include task specific vars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment