Commit 12887b61 authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

Don't fail hard if the Linode API doesn't return a list of instances

parent ca256072
Pipeline #211 passed with stages
in 7 minutes and 11 seconds
......@@ -26,7 +26,7 @@ class LinodeBackend(SensorBackend):
self.instances = set(instances or [])
def process_data(self, data: Dict[str, dict], new_data: Optional[Dict[str, dict]] = None, **kwargs):
instances = data['instances']
instances = data.get('instances', {})
old_instances = ( or {}).get('instances', {})
if self.instances:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment