diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/ansible_test/_internal/util_common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/util_common.py b/test/lib/ansible_test/_internal/util_common.py index f4035ee934..5be20ee749 100644 --- a/test/lib/ansible_test/_internal/util_common.py +++ b/test/lib/ansible_test/_internal/util_common.py @@ -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 |