mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Added check for port_list in wait_until_ports_disappear to ensure list is being used
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user