From 18a9282e0de42ae61fb29d959b411d3fcfa22161 Mon Sep 17 00:00:00 2001 From: Michael Warkentin Date: Mon, 20 Oct 2014 20:03:43 -0400 Subject: [PATCH] Add host to polling message The message for when an async task has finished has the hostname in it. This adds it to the polling message as well: ``` finished on 107.6.24.140 finished on 69.90.50.171 polling on 69.90.50.172, 6840s remaining ``` --- lib/ansible/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 03b7b8a853..d6dfb3c11c 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -411,7 +411,7 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): self._async_notified[jid] = clock + 1 if self._async_notified[jid] > clock: self._async_notified[jid] = clock - display(" polling, %ss remaining" % (jid, clock), runner=self.runner) + display(" polling on %s, %ss remaining" % (jid, host, clock), runner=self.runner) super(CliRunnerCallbacks, self).on_async_poll(host, res, jid, clock) def on_async_ok(self, host, res, jid):