mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Change wait_for return message to be machine readable.
This commit is contained in:
@@ -72,7 +72,7 @@ def main():
|
||||
else:
|
||||
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
|
||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
||||
|
||||
Reference in New Issue
Block a user