mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
mgr: Properly set description in labeled get_perf_schema_python
Fixes: https://tracker.ceph.com/issues/76048 Signed-off-by: stzuraski898 <steven.zuraski@ibm.com>
This commit is contained in:
parent
7a6816df67
commit
f410c49e60
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user