Skip to content

Commit 4905ef6

Browse files
committed
[mac_ai] testing: remote_access: make safer
1 parent a1ac860 commit 4905ef6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/mac_ai/testing/remote_access.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def prepare():
8282

8383
def run_with_ansible_ssh_conf(
8484
base_work_dir, cmd,
85-
extra_env={},
85+
extra_env=None,
8686
check=True,
8787
capture_stdout=False,
8888
capture_stderr=False,
@@ -92,6 +92,9 @@ def run_with_ansible_ssh_conf(
9292
decode_stdout=True,
9393
decode_stderr=True,
9494
):
95+
if extra_env is None:
96+
extra_env = {}
97+
9598
run_kwargs = dict(
9699
log_command=False,
97100
check=check,

0 commit comments

Comments
 (0)