]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: push localized config handling into BaseMgr*Module 26736/head
authorSage Weil <sage@redhat.com>
Fri, 8 Mar 2019 14:48:39 +0000 (08:48 -0600)
committerVolker Theile <vtheile@suse.com>
Mon, 11 Mar 2019 16:25:18 +0000 (17:25 +0100)
commit4ca5596a45007805e6977cf8619e65bcff220250
tree9e666810faf0a3b419bd2cdb72cbc41d7447d35b
parentbc9643657af9be29be54467ad4eb38bfc7e7e7a3
mgr: push localized config handling into BaseMgr*Module

We need both (1) the raw key name (in order to look up the correct option
name and transform the result into the correct type) and (2) the optional
prefix (in order to look up both possible keys).  This simplifies the
mgr_module implementation.

There is a weird mismatch between the way that BaseMgrModule and
BaseMgrStandbyModule implement this method.  I suspect they could be
unified to work the same, but I'll leave that for another day.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/BaseMgrStandbyModule.cc
src/pybind/mgr/mgr_module.py