From e025387472413fc54d3d86c6b008c4a311acaeee Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Tue, 26 May 2020 16:42:52 -0700 Subject: [PATCH] LFUtils.py: fixes string comparators --- py-json/LANforge/LFUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index 72dd2b57..e0f3f63f 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -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