LFUtils.py: fixes string comparators

This commit is contained in:
Jed Reynolds
2020-05-26 16:42:52 -07:00
parent 72a2af3e5c
commit e025387472

View File

@@ -255,7 +255,7 @@ def waitUntilPortsAdminDown(resource_id=1, base_url="http://localhost:8080", por
continue
if "interface" in json_response:
json_response = json_response['interface']
if json_response['down'] is "false":
if json_response['down'] == "false":
up_stations.append(port_name)
sleep(1)
return None
@@ -275,7 +275,7 @@ def waitUntilPortsAdminUp(resource_id=1, base_url="http://localhost:8080", port_
continue
if "interface" in json_response:
json_response = json_response['interface']
if json_response['down'] is "true":
if json_response['down'] == "true":
down_stations.append(port_name)
sleep(1)
return None