Make sure that the implicit async_status gets the env from a task with async. Fixes #39699 (#39764)

This commit is contained in:
Matt Martz 2018-05-04 18:43:33 -05:00 committed by GitHub
parent fc210a4584
commit 3b496db4d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -713,7 +713,7 @@ class TaskExecutor:
# that (with a sleep for "poll" seconds between each retry) until the
# async time limit is exceeded.
async_task = Task().load(dict(action='async_status jid=%s' % async_jid))
async_task = Task().load(dict(action='async_status jid=%s' % async_jid, environment=self._task.environment))
# FIXME: this is no longer the case, normal takes care of all, see if this can just be generalized
# Because this is an async task, the action handler is async. However,