From 02fab151465cc98b99e48a8bf61160984522f457 Mon Sep 17 00:00:00 2001 From: Simon Kollberg Date: Wed, 30 Nov 2016 09:21:39 +0100 Subject: [PATCH] Minor fix to get_metrics json -> dict --- juju/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1