]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add fetch_configs function for reading configuration items from ctx
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 14:30:51 +0000 (10:30 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit85155b0d48eb326b0410f32ad37ced8a6b21fd05
tree81711083f4bcc1460d8cb6f860b61c32169b2b83
parentd2bb40dce5adc6f6bde1a7f247bc0eed961c1ad6
cephadm: add fetch_configs function for reading configuration items from ctx

The CephadmContext holds much of cephadm's state, including values
from cli options and (soon) configuration file input. Add a
`fetch_configs` function that reads processed configuration items from `config_blobs`
(a dict mapping config name to arbitrary configuration content) or
falls back to using the `get_parm` function on `ctx.config_json`.

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