From 35435807167d2851eaa646facd7513ef9f9ff10f Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Tue, 21 Jun 2022 00:03:11 +0530 Subject: [PATCH] orch/run: set mutable default arguments as None Signed-off-by: Vallari Agrawal --- teuthology/orchestra/run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index 0c661c7b8a..a697306246 100644 --- a/teuthology/orchestra/run.py +++ b/teuthology/orchestra/run.py @@ -40,7 +40,7 @@ class RemoteProcess(object): deadlock_warning = "Using PIPE for %s without wait=False would deadlock" def __init__(self, client, args, check_status=True, hostname=None, - label=None, timeout=None, wait=True, logger=None, cwd=None, scan_tests_errors=[]): + label=None, timeout=None, wait=True, logger=None, cwd=None, scan_tests_errors=None): """ Create the object. Does not initiate command execution. @@ -265,7 +265,7 @@ class ErrorScanner(object): return True return False - def scan(self, test_names=[]): + def scan(self, test_names=None): logfile = self.__logfile__ if not logfile or not test_names: return None, None @@ -473,7 +473,7 @@ def run( quiet=False, timeout=None, cwd=None, - scan_tests_errors=[], + scan_tests_errors=None, # omit_sudo is used by vstart_runner.py omit_sudo=False ): -- 2.39.5