Commit 91de7d41 by Bach Dániel

Merge branch 'fix-network-graph' into 'master'

fix issue #407 (Network graph error for VMs without network) 

See merge request !327
parents d4205acc 626244ad
...@@ -212,7 +212,7 @@ class VmNetwork(object): ...@@ -212,7 +212,7 @@ class VmNetwork(object):
'alias(scaleToSeconds(nonNegativeDerivative(' 'alias(scaleToSeconds(nonNegativeDerivative('
'%s.network.bytes_sent-%s), 10), "in - %s (bits/s)")' % ( '%s.network.bytes_sent-%s), 10), "in - %s (bits/s)")' % (
params)) params))
return 'group(%s)' % ','.join(metrics) return 'group(%s)' % ','.join(metrics) if metrics else None
register_graph(VmNetwork, 'network', VmGraphView) register_graph(VmNetwork, 'network', VmGraphView)
......
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