Ensure ansible_job_id exists even for not-started jobs

pull/7621/head
Henry Finucane 11 years ago
parent a0635ebb0d
commit 36632c9529

@ -43,6 +43,7 @@ class AsyncPoller(object):
self.active = True self.active = True
else: else:
skipped = skipped and res.get('skipped', False) skipped = skipped and res.get('skipped', False)
self.runner.vars_cache[host]['ansible_job_id'] = ''
self.results['contacted'][host] = res self.results['contacted'][host] = res
for (host, res) in results['dark'].iteritems(): for (host, res) in results['dark'].iteritems():
self.runner.vars_cache[host]['ansible_job_id'] = '' self.runner.vars_cache[host]['ansible_job_id'] = ''

Loading…
Cancel
Save