From f77276a5c683708484e388a8b184b88e6472708b Mon Sep 17 00:00:00 2001 From: John Spray Date: Sun, 31 Jul 2016 23:21:41 +0100 Subject: [PATCH] pybind/mgr: update rest module for pg_summary ...which is now generated properly from PGMap instead of reconstituted from some JSON. Signed-off-by: John Spray --- src/pybind/mgr/rest/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/rest/module.py b/src/pybind/mgr/rest/module.py index bcd5a5d6a3e..e3d5ed36e7f 100644 --- a/src/pybind/mgr/rest/module.py +++ b/src/pybind/mgr/rest/module.py @@ -124,8 +124,8 @@ class Module(MgrModule): obj = FsMap(data['epoch'], data) elif object_type == PgSummary: data = self.get("pg_summary") - self.log.debug("JSON: {0}".format(data['json'])) - obj = PgSummary(0, json.loads(data['json'])) + self.log.debug("JSON: {0}".format(data)) + obj = PgSummary(0, data) elif object_type == Health: data = self.get("health") obj = Health(0, json.loads(data['json']))