]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: combine deploy functions some more
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 30 May 2023 20:23:13 +0000 (16:23 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit719ef4893469eb645cc0ad12d94bbf49a1b84a00
treee98fa9c0bc2ca7e82649a4b77eefeee96a66e862
parent6b0fba88e358d19c28d1f1ea3302aa5eeb8a4a09
cephadm: combine deploy functions some more

During review it was pointed out that much of command_deploy and
command_deploy_from were still common. Combine the bulk of
command_deploy and command_deploy_from into a new _common_deploy.
The old _common_deploy is renamed to _dispatch_deploy but kept
as a separate function.

The reason for keeping _dispatch_deploy as a function is that
it limits the scope of variables. It helps knowing exactly what
is needed and what is not needed from _common_deploy.

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