Remove some use of is operator, fix log printout spelling errors

This commit is contained in:
bealler
2021-02-11 09:22:14 -05:00
parent 155b7b766f
commit 5123ecef58
3 changed files with 6 additions and 7 deletions

View File

@@ -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")