mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
Fixed list index out of range issue for cv close dialog
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -333,10 +333,13 @@ class cv_test(Realm):
|
||||
not_running = 0
|
||||
while True:
|
||||
cmd = "cv get_and_close_dialog"
|
||||
dialog = self.run_cv_cmd(cmd)
|
||||
if dialog[0]["LAST"]["response"] != "NO-DIALOG":
|
||||
logger.info("Popup Dialog:\n")
|
||||
logger.info(dialog[0]["LAST"]["response"])
|
||||
try:
|
||||
dialog = self.run_cv_cmd(cmd)
|
||||
if dialog[0]["LAST"]["response"] != "NO-DIALOG":
|
||||
logger.info("Popup Dialog:\n")
|
||||
logger.info(dialog[0]["LAST"]["response"])
|
||||
except Exception as e:
|
||||
logger.info(str(e))
|
||||
|
||||
check = self.get_report_location(instance_name)
|
||||
location = json.dumps(check[0]["LAST"]["response"])
|
||||
|
||||
Reference in New Issue
Block a user