Commit 15bb2bc2 by Turcsik Máté

Revert "Update node.py"

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