]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Properly set description in labeled get_perf_schema_python 68435/head
authorstzuraski898 <steven.zuraski@ibm.com>
Thu, 16 Apr 2026 21:56:53 +0000 (21:56 +0000)
committerstzuraski898 <steven.zuraski@ibm.com>
Thu, 16 Apr 2026 22:00:45 +0000 (22:00 +0000)
Fixes: https://tracker.ceph.com/issues/76048
Signed-off-by: stzuraski898 <steven.zuraski@ibm.com>
src/mgr/ActivePyModules.cc

index fcef67daa377c34e42d3963cfcaa4438470facff..431da2c76ca7428e3e12d47644f1edf216d5c0b2 100644 (file)
@@ -1141,7 +1141,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);
     }