mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +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();
|
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") {
|
} else if (what == "df") {
|
||||||
PyFormatter f;
|
PyFormatter f;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user