From: Boris Ranto Date: Thu, 3 May 2018 12:25:30 +0000 (+0200) Subject: mgr: Expose pg_sum in pg_summary X-Git-Tag: v13.2.1~127^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ffa87fca14b49814c916eb9d77b82e91c161c07;p=ceph.git mgr: Expose pg_sum in pg_summary Signed-off-by: Boris Ranto (cherry picked from commit 6f2a85e3b312dc60b009bcb509f5983905e802e5) --- diff --git a/src/mgr/ActivePyModules.cc b/src/mgr/ActivePyModules.cc index 4cb8a0883a9e..99a2fa12a640 100644 --- a/src/mgr/ActivePyModules.cc +++ b/src/mgr/ActivePyModules.cc @@ -265,6 +265,9 @@ PyObject *ActivePyModules::get_python(const std::string &what) f.dump_int(i.first.c_str(), i.second); } f.close_section(); + f.open_object_section("pg_stats_sum"); + pg_map.pg_sum.dump(&f); + f.close_section(); } ); return f.get();