]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: split DaemonSubIdentity class off from DaemonIdentity
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 25 Jul 2023 18:08:52 +0000 (14:08 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Sep 2023 17:34:11 +0000 (13:34 -0400)
commit53c63888fb5e71d0ef672ad0acdcfc16e0714252
tree4f5381b32267796a9ba0fa418c01752a1c75de88
parent5b1f679ff4465c7a611a267fe288073a82657bf1
cephadm: split DaemonSubIdentity class off from DaemonIdentity

Split DaemonSubIdentity into it's own subclass of DaemonIdentity
in order to better use the type system for validation and clarity.
DaemonIdentity loses the `subcomponent` field so that there's no
mistaking a DaemonIdentity with a DaemonSubIdentity.
This will make a lot more sense once there are more uses of
DaemonSubIdentity in the codebase.

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