mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
Remove some use of is operator, fix log printout spelling errors
This commit is contained in:
@@ -69,7 +69,7 @@ class CloudSDK:
|
||||
}
|
||||
status_response = requests.request("GET", equip_fw_url, headers=headers, data=payload)
|
||||
status_code = status_response.status_code
|
||||
if status_code is 200:
|
||||
if status_code == 200:
|
||||
status_data = status_response.json()
|
||||
#print(status_data)
|
||||
try:
|
||||
@@ -266,7 +266,7 @@ class CloudSDK:
|
||||
}
|
||||
del_profile = requests.request("DELETE", url, headers=headers, data=payload)
|
||||
status_code = del_profile.status_code
|
||||
if status_code is 200:
|
||||
if status_code == 200:
|
||||
return("SUCCESS")
|
||||
else:
|
||||
return ("ERROR")
|
||||
|
||||
Reference in New Issue
Block a user