Commit 4cbe87c7 by Guba Sándor

node: Added info log message when monitoring fails

(instead of NoneType excepton)
parent 4c21a9f4
......@@ -171,7 +171,11 @@ class Node(TimeStampedModel):
def update_vm_states(self):
domains = {}
for i in self.remote_query(vm_tasks.list_domains_info, timeout=5):
domain_list = self.remote_query(vm_tasks.list_domains_info, timeout=5)
if domain_list is None:"Monitoring failed at: %s",
for i in domain_list:
# [{'name': 'cloud-1234', 'state': 'RUNNING', ...}, ...]
id = int(i['name'].split('-')[1])
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 sign in to comment