1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Change wait_for return message to be machine readable.

This commit is contained in:
Jeroen Hoekx 2012-08-24 20:47:55 +02:00
parent 5ba34572d9
commit 18d5c875d0

View file

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