From 36632c95297365888488df6503b7380412288468 Mon Sep 17 00:00:00 2001 From: Henry Finucane Date: Sat, 31 May 2014 20:18:21 -0700 Subject: [PATCH] Ensure ansible_job_id exists even for not-started jobs --- lib/ansible/runner/poller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/poller.py b/lib/ansible/runner/poller.py index 5fd35374807..02184814159 100644 --- a/lib/ansible/runner/poller.py +++ b/lib/ansible/runner/poller.py @@ -43,6 +43,7 @@ class AsyncPoller(object): self.active = True else: skipped = skipped and res.get('skipped', False) + self.runner.vars_cache[host]['ansible_job_id'] = '' self.results['contacted'][host] = res for (host, res) in results['dark'].iteritems(): self.runner.vars_cache[host]['ansible_job_id'] = ''