From c4e3217612d7923988b8d63e71ce0d50f69dead8 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Thu, 3 May 2012 21:27:26 +0200 Subject: [PATCH] nova: Fix graph label --- plugins/nova/nova_instance_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nova/nova_instance_ b/plugins/nova/nova_instance_ index 36d98778..8bd19271 100755 --- a/plugins/nova/nova_instance_ +++ b/plugins/nova/nova_instance_ @@ -66,7 +66,7 @@ def get_name(metric, code): if metric == "power_state": return power_state.name(code) elif metric in ["root_gb", "ephemeral_gb"]: - return "%d_gb", code + return "%d gb" % code else: return code @@ -79,7 +79,7 @@ def print_config(metric): print 'graph_scale no' print 'graph_info This graph shows the number of instances by %s' % metric for state in states: - print '%s.label %s' % (state, get_name(state)) + print '%s.label %s' % (state, get_name(metric, state)) print '%s.draw LINE2' % state print '%s.info %s IPs' % (state, state)