mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_tr398v2_test: fix mutable default arguments
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -291,13 +291,21 @@ class TR398v2Test(cvtest):
|
|||||||
raw_lines_file="",
|
raw_lines_file="",
|
||||||
dut5="",
|
dut5="",
|
||||||
dut2="",
|
dut2="",
|
||||||
enables=[],
|
enables=None,
|
||||||
disables=[],
|
disables=None,
|
||||||
raw_lines=[],
|
raw_lines=None,
|
||||||
sets=[],
|
sets=None,
|
||||||
):
|
):
|
||||||
super().__init__(lfclient_host=lf_host, lfclient_port=lf_port)
|
super().__init__(lfclient_host=lf_host, lfclient_port=lf_port)
|
||||||
|
|
||||||
|
if enables is None:
|
||||||
|
enables = []
|
||||||
|
if disables is None:
|
||||||
|
disables = []
|
||||||
|
if raw_lines is None:
|
||||||
|
raw_lines = []
|
||||||
|
if sets is None:
|
||||||
|
sets = []
|
||||||
self.lf_host = lf_host
|
self.lf_host = lf_host
|
||||||
self.lf_port = lf_port
|
self.lf_port = lf_port
|
||||||
self.lf_user = lf_user
|
self.lf_user = lf_user
|
||||||
|
|||||||
Reference in New Issue
Block a user