From: Simon Kollberg Date: Wed, 30 Nov 2016 08:21:39 +0000 (+0100) Subject: Minor fix to get_metrics X-Git-Tag: 0.1.0~26^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=02fab151465cc98b99e48a8bf61160984522f457;p=osm%2FN2VC.git Minor fix to get_metrics json -> dict --- diff --git a/juju/model.py b/juju/model.py index 50b3ad0..df72eb2 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1261,7 +1261,7 @@ class Model(object): raise Exception(error.message) for metric in entity_metrics.metrics: - metrics[metric.unit].append(metric.to_json()) + metrics[metric.unit].append(vars(metric)) return metrics