From 668e58e8d6de4fe4b9380eb396bdb4839f386bfd Mon Sep 17 00:00:00 2001 From: matthew Date: Fri, 3 Dec 2021 07:30:31 -0800 Subject: [PATCH] fio_endp_profile: Fix mutable default error Signed-off-by: matthew --- py-json/fio_endp_profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-json/fio_endp_profile.py b/py-json/fio_endp_profile.py index a3497923..9396240b 100644 --- a/py-json/fio_endp_profile.py +++ b/py-json/fio_endp_profile.py @@ -121,7 +121,9 @@ class FIOEndpProfile(LFCliBase): self.json_post(req_url, data) # pprint(data) - def create(self, ports=[], connections_per_port=1, sleep_time=.5, debug_=False, suppress_related_commands_=None): + def create(self, ports=None, connections_per_port=1, sleep_time=.5, debug_=False, suppress_related_commands_=None): + if ports is None: + ports = [] cx_post_data = [] for port_name in ports: for num_connection in range(connections_per_port):