]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: avoid redundant call to cache.get_scheduled_daemon_action
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 9 Mar 2026 19:08:44 +0000 (15:08 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 26 Mar 2026 13:31:38 +0000 (09:31 -0400)
commitc8a1451f1dbd48206cc243401ae4ac2a4b49c1f2
tree11f746896503bb6df05c8bf240caea113d35a0b0
parente0d441a36c066944ce009537127dd185a6d893a0
mgr/cephadm: avoid redundant call to cache.get_scheduled_daemon_action

Avoid a redundant call to cache.get_scheduled_daemon_action by
saving the call result in two variables at the first call site.
One var may be changed but the other will retain the original
value until it is checked again later.

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