]> 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)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:15 +0000 (13:35 -0400)
commite81ca94094fb577923dd78ae21fcb368859adb04
tree89f8cb348593e16c3aa26af97b721d5aeed76a32
parentcc2c50474e35768e8c60b82d50ea24693c9dcb39
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