From 9ffa87fca14b49814c916eb9d77b82e91c161c07 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Thu, 3 May 2018 14:25:30 +0200 Subject: [PATCH] mgr: Expose pg_sum in pg_summary Signed-off-by: Boris Ranto (cherry picked from commit 6f2a85e3b312dc60b009bcb509f5983905e802e5) --- src/mgr/ActivePyModules.cc | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.47.3