From 18d5c875d012bf9a9b2a8d5d007846156b796b12 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. --- library/wait_for | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/wait_for b/library/wait_for index 0c6045e0a4a..8a20bb3c49c 100644 --- a/library/wait_for +++ b/library/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 #<>