mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
parent
fa147e3a59
commit
f77276a5c6
@ -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']))
|
||||
|
Loading…
Reference in New Issue
Block a user