Commit 18d5c875 by Jeroen Hoekx

Change wait_for return message to be machine readable.

parent 5ba34572
...@@ -72,7 +72,7 @@ def main(): ...@@ -72,7 +72,7 @@ def main():
else: else:
module.fail_json(msg="Timeout when waiting for %s"%(host)) module.fail_json(msg="Timeout when waiting for %s"%(host))
module.exit_json(msg="State of %s on %s is %s."%(host, port, state)) module.exit_json(state=state, port=port)
# this is magic, see lib/ansible/module_common.py # this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> #<<INCLUDE_ANSIBLE_MODULE_COMMON>>
......
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