mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
mgr/PyModules: add 'pg_dump' get
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
85b5b80906
commit
bfb9286f42
@ -262,7 +262,14 @@ PyObject *PyModules::get_python(const std::string &what)
|
||||
}
|
||||
);
|
||||
return f.get();
|
||||
|
||||
} else if (what == "pg_dump") {
|
||||
PyFormatter f;
|
||||
cluster_state.with_pgmap(
|
||||
[&f](const PGMap &pg_map) {
|
||||
pg_map.dump(&f);
|
||||
}
|
||||
);
|
||||
return f.get();
|
||||
} else if (what == "df") {
|
||||
PyFormatter f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user