fio_endp_profile: Fix mutable default error

Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
matthew
2021-12-03 07:30:31 -08:00
parent b41838ff43
commit 668e58e8d6

View File

@@ -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):