gen_cxprofile: Fix mutable default arguments error

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-29 16:42:43 -08:00
parent 111fae0866
commit f56a4347d9

View File

@@ -277,7 +277,9 @@ class GenCXProfile(LFCliBase):
})
time.sleep(sleep_time)
def create(self, ports=[], sleep_time=.5, debug_=False, suppress_related_commands_=None):
def create(self, ports=None, sleep_time=.5, debug_=False, suppress_related_commands_=None):
if ports is None:
ports = []
if self.debug:
debug_ = True
post_data = []