]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add a new Action enum class
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 10 Mar 2026 13:44:44 +0000 (09:44 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 26 Mar 2026 13:31:38 +0000 (09:31 -0400)
commit989dc2229e7ebacab58baa535cb2c1ac262e050b
tree0e985b1ab2405cdd8e2813cfadb667a5f5dd824a
parentc8a1451f1dbd48206cc243401ae4ac2a4b49c1f2
mgr/cephadm: add a new Action enum class

Currently, the code base mostly uses strings to represent actions
(like 'start', 'redeploy, 'reconfig', ...). Add a new Action class
to utils.py to have a crisper typing-friendly representation for
actions.

This is added to support net new code. While I'd like to see this
used more the goal is to prevent errors in the new approach and I
don't plan on immediately going back through all of cephadm
and finding and replacing all action strings right away.

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