Commit 22b41546 by Turcsik Máté

Update node.py

parent 066eeb4d
...@@ -80,7 +80,8 @@ class MyLocalClient(LocalClient): ...@@ -80,7 +80,8 @@ class MyLocalClient(LocalClient):
ret[raw['id']] = raw['return'] ret[raw['id']] = raw['return']
if len(found.intersection(minions)) >= len(minions): if len(found.intersection(minions)) >= len(minions):
# All minions have returned, break out of the loop # All minions have returned, break out of the loop
logger.debug("jid %s found all minions", jid) logge except (KeyError, IndexError, ValueError):
r.debug("jid %s found all minions", jid)
break break
continue continue
# Then event system timeout was reached and nothing was returned # Then event system timeout was reached and nothing was returned
...@@ -349,7 +350,7 @@ class Node(OperatedMixin, TimeStampedModel): ...@@ -349,7 +350,7 @@ class Node(OperatedMixin, TimeStampedModel):
continue continue
value = target['datapoints'][-2][0] value = target['datapoints'][-2][0]
retval[metric] = float(value) retval[metric] = float(value)
except (KeyError, IndexError, ValueError): except (KeyError, IndexError, ValueError, TypeError):
continue continue
return retval return retval
......
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