From 79fffdae873202ce26a478934d6d436645d2c275 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 24 Aug 2012 20:47:55 +0200 Subject: [PATCH] Change wait_for return message to be machine readable. --- wait_for | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wait_for b/wait_for index 0c6045e0a4a..8a20bb3c49c 100644 --- a/wait_for +++ b/wait_for @@ -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 #<>