From: Gianpietro Lavado Date: Sun, 8 Dec 2019 13:27:02 +0000 (+0000) Subject: Fix bug in juju metrics collection X-Git-Tag: v7.0.0rc1~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F8347%2F1;p=osm%2FMON.git Fix bug in juju metrics collection Change-Id: I0efd96227078df10e062d087afb86dc3796d4eb3 Signed-off-by: Gianpietro Lavado --- 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