]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: minor reorgs to command_rm_daemon
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 18 Nov 2023 16:50:29 +0000 (11:50 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commit2d8045d96f1a305b57a34ff96c130959821c393f
tree1e51a63aa0b929a416882cdf4b3a1b8557286cac
parent87e6dc6c5fac5f3ad2641015ffebd4206bc9a0b0
cephadm: minor reorgs to command_rm_daemon

Make a few small chanes to command_rm_daemon to clean it up in
preparation for future changes. Move the construction of a
DaemonIdentity earlier and use the service name derived directly from it
if possible. I didn't remove the old approach of looking up a service
name in the listing because I don't know if doing so would break
old/adopted services and there's no unit test coverage for that.

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