mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 20:27:54 +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):
|
def wait_until_ports_disappear(base_url="http://localhost:8080", port_list=[], debug=False):
|
||||||
print("Waiting until ports disappear...")
|
print("Waiting until ports disappear...")
|
||||||
url = "/port/1"
|
url = "/port/1"
|
||||||
|
if isinstance(port_list, list):
|
||||||
found_stations = port_list.copy()
|
found_stations = port_list.copy()
|
||||||
|
else:
|
||||||
|
found_stations = [port_list]
|
||||||
|
|
||||||
while len(found_stations) > 0:
|
while len(found_stations) > 0:
|
||||||
found_stations = []
|
found_stations = []
|
||||||
|
|||||||
Reference in New Issue
Block a user