Commit 99df6972 by Bach Dániel

vm: add missing 'continue' statement

parent 897d2191
......@@ -269,6 +269,8 @@ class Node(OperatedMixin, TimeStampedModel):
metric = target['target']
if metric.startswith(prefix):
metric = metric[len(prefix):]
else:
continue
value = target['datapoints'][-2][0]
retval[metric] = float(value)
except (KeyError, IndexError, ValueError):
......
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