diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index 62766311..088b01f8 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -445,7 +445,10 @@ def waitUntilPortsDisappear(base_url="http://localhost:8080", port_list=[], debu def wait_until_ports_disappear(base_url="http://localhost:8080", port_list=[], debug=False): print("Waiting until ports disappear...") url = "/port/1" - found_stations = port_list.copy() + if isinstance(port_list, list): + found_stations = port_list.copy() + else: + found_stations = [port_list] while len(found_stations) > 0: found_stations = []