From e21e44cbf19dcfd8867c085be07a454fc422118d Mon Sep 17 00:00:00 2001 From: Gianpietro Lavado Date: Sun, 8 Dec 2019 13:27:02 +0000 Subject: [PATCH] Fix bug in juju metrics collection Change-Id: I0efd96227078df10e062d087afb86dc3796d4eb3 Signed-off-by: Gianpietro Lavado --- osm_mon/collector/vnf_collectors/juju.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_mon/collector/vnf_collectors/juju.py b/osm_mon/collector/vnf_collectors/juju.py index ce6f777..8f3fa34 100644 --- a/osm_mon/collector/vnf_collectors/juju.py +++ b/osm_mon/collector/vnf_collectors/juju.py @@ -80,7 +80,7 @@ class VCACollector(BaseCollector): for measure in measure_list: log.debug("Measure: %s", measure) metric = VnfMetric(nsr_id, vnf_member_index, vdur['name'], measure['key'], - float(measure['value'], tags)) + float(measure['value']), tags) metrics.append(metric) if 'vnf-configuration' in vnfd and 'metrics' in vnfd['vnf-configuration']: try: @@ -94,7 +94,7 @@ class VCACollector(BaseCollector): for measure_list in measures.values(): for measure in measure_list: log.debug("Measure: %s", measure) - metric = VnfMetric(nsr_id, vnf_member_index, '', measure['key'], float(measure['value'], tags)) + metric = VnfMetric(nsr_id, vnf_member_index, '', measure['key'], float(measure['value']), tags) metrics.append(metric) return metrics -- 2.25.1