mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
cv-test-mgr: Debugging output for bad cv commands.
This may help users diagnose next time a script is out of sync with GUI features. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -125,6 +125,13 @@ class cv_test(Realm):
|
||||
}
|
||||
debug_par = ""
|
||||
rsp = self.json_post("/gui-json/cmd%s" % debug_par, data, debug_=False, response_json_list_=response_json)
|
||||
try:
|
||||
if response_json[0]["LAST"]["warnings"].startswith("Unknown"):
|
||||
print("Unknown command?\n");
|
||||
pprint(response_json)
|
||||
except:
|
||||
# Ignore un-handled structs at this point, let calling code deal with it.
|
||||
pass
|
||||
return response_json
|
||||
|
||||
#For auto save report
|
||||
|
||||
Reference in New Issue
Block a user