mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
Minor bug fixes
This commit is contained in:
@@ -1874,7 +1874,7 @@ for key in ap_models:
|
|||||||
passed_tests = sum(x == "passed" for x in report_data["tests"][key].values())
|
passed_tests = sum(x == "passed" for x in report_data["tests"][key].values())
|
||||||
failed_tests = sum(y == "failed" for y in report_data["tests"][key].values())
|
failed_tests = sum(y == "failed" for y in report_data["tests"][key].values())
|
||||||
error_tests = sum(z == "error" for z in report_data["tests"][key].values())
|
error_tests = sum(z == "error" for z in report_data["tests"][key].values())
|
||||||
no_of_tests = passed_tests + failed_tests + error_tests
|
no_of_tests = len(case_ids)
|
||||||
if no_of_tests == 0:
|
if no_of_tests == 0:
|
||||||
print("No tests run for", key)
|
print("No tests run for", key)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -72,10 +72,15 @@ class CloudSDK:
|
|||||||
if status_code is 200:
|
if status_code is 200:
|
||||||
status_data = status_response.json()
|
status_data = status_response.json()
|
||||||
#print(status_data)
|
#print(status_data)
|
||||||
current_ap_fw = status_data[2]['details']['reportedSwVersion']
|
try:
|
||||||
return current_ap_fw
|
current_ap_fw = status_data[2]['details']['reportedSwVersion']
|
||||||
|
return current_ap_fw
|
||||||
|
except:
|
||||||
|
current_ap_fw = "error"
|
||||||
|
return "ERROR"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return("ERROR")
|
return "ERROR"
|
||||||
|
|
||||||
def CloudSDK_images(apModel, cloudSDK_url, bearer):
|
def CloudSDK_images(apModel, cloudSDK_url, bearer):
|
||||||
getFW_url = cloudSDK_url+"/portal/firmware/version/byEquipmentType?equipmentType=AP&modelId=" + apModel
|
getFW_url = cloudSDK_url+"/portal/firmware/version/byEquipmentType?equipmentType=AP&modelId=" + apModel
|
||||||
|
|||||||
Reference in New Issue
Block a user