Commit 36632c95 by Henry Finucane

Ensure ansible_job_id exists even for not-started jobs

parent a0635ebb
......@@ -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'] = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment