]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: call functions instead of executing rm in rm_cluster
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 19 Nov 2023 21:35:06 +0000 (16:35 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commit08e7a56ead5d3a241cd626d0436dff24867d3445
treef9c88cc75ad25b83d48ee2b3c8d5578c37dcab48
parent133b23f13e434cf01f59d04d6b83cb03df05b43b
cephadm: call functions instead of executing rm in rm_cluster

Convert a bunch of invocations of rm via a subprocess to function calls.
This should make it easier (or possible?) to test the function
in the unit test framework as well as possibly saving a few resources.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py