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 <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-07-31 23:21:41 +01:00
parent fa147e3a59
commit f77276a5c6

View File

@ -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']))