]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: split command_deploy_from into mockable parts
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 20 May 2023 17:42:02 +0000 (13:42 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit3684cbbfe2add10de42794aa0eeef9b13897804b
treeaa528e7cb78be837e4d08f46ed9df4ef25c2193d
parent452f59ce1d2d71bebc0554ebfab12a5fbf3ada74
cephadm: split command_deploy_from into mockable parts

Split up command_deploy_from so that the part that reads the JSON
from an input source is moved into read_configuration_source and
the part that applied the configuration data to the ctx is moved
into apply_deploy_config_to_ctx. This will make these sections
reusable and, more importantly, make it easier to mock/monkeypatch
these functions in tests.

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