[stable-2.9] Fix ansible-test env var mixing running commands.

(cherry picked from commit 6be4741f72)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/64686/head
Matt Clay 5 years ago
parent c271fd0df2
commit 7c5e08c059

@ -0,0 +1,2 @@
bugfixes:
- ansible-test now properly uses a fresh copy of environment variables for each command invocation to avoid mixing vars between commands

@ -335,6 +335,8 @@ def intercept_command(args, cmd, target_name, env, capture=False, data=None, cwd
"""
if not env:
env = common_environment()
else:
env = env.copy()
cmd = list(cmd)
version = python_version or args.python_version

Loading…
Cancel
Save