mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Ensure ansible_job_id exists even for not-started jobs
This commit is contained in:
@@ -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'] = ''
|
||||
|
||||
Reference in New Issue
Block a user