Open MitchellGulledge opened 3 years ago
# in the event that the tunnel has been down for some time we need to account for the case where there
# are no relevant logs: No matching events found
if 'No matching events found' in str(events_response)
logging.info("No relevant logs indicating the tunnel should be up, continueing")
continue
Result: Failure Exception: IndexError: list index out of range Stack: File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 370, in _handle__invocation_request call_result = await self._loop.run_in_executor( File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 548, in __run_sync_func return func(**params) File "/home/site/wwwroot/Meraki-VWAN-Automation/__init__.py", line 974, in main meraki_vpn_failover() File "/home/site/wwwroot/Meraki-VWAN-Automation/__init__.py", line 123, in meraki_vpn_failover event_data = events_response_data[-1]['eventData']