]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: split get_unit_name into two functions
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 25 Jul 2023 20:46:01 +0000 (16:46 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Sep 2023 17:34:11 +0000 (13:34 -0400)
commit3f953b16c3efde5b52d10d69fcd6907a62c836de
tree7c8ac21c709c5eff1501112614cb99330941e4c5
parentdc22f7f47d6931ec4494313b9c754aeb3ffe7858
cephadm: split get_unit_name into two functions

The previous version of get_unit_name was effectively overloaded,
so that you could pass either an fsid, daemon_type, & daemon_id OR
pass an fsid and a "daemon_type" only that wasn't actually a daemon_type
but rather the instance name of the systemd service. Separate the
two use cases into two functions, making the naming more correct and
the code more audit-able overall.

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