]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Properly set description in labeled get_perf_schema_python 69817/head
authorstzuraski898 <steven.zuraski@ibm.com>
Thu, 16 Apr 2026 21:56:53 +0000 (21:56 +0000)
committerstzuraski898 <steven.zuraski@ibm.com>
Mon, 29 Jun 2026 22:07:36 +0000 (22:07 +0000)
Fixes: https://tracker.ceph.com/issues/76048
Signed-off-by: stzuraski898 <steven.zuraski@ibm.com>
(cherry picked from commit f410c49e609ce883c76d7277c133f5c64a8eeb53)

src/mgr/ActivePyModules.cc

index ba11fa2d21cf744db94d1d9fb785679340db415e..635b8963fba14e0161e4f650c241036e5b9f23c8 100644 (file)
@@ -1171,7 +1171,7 @@ PyObject* ActivePyModules::get_perf_schema_python(
     size_t pos = type.path.rfind('.');
     std::string sub_counter_name = type.path.substr(pos + 1, type.path.length());
     Formatter::ObjectSection counter_section(*f, sub_counter_name);
-    f->create_unique("description", type.description);
+    f->dump_string("description", type.description);
     if (!type.nick.empty()) {
       f->dump_string("nick", type.nick);
     }