]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MgrMonitor: make find_module_option handle localized option names
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 00:05:02 +0000 (18:05 -0600)
committerSage Weil <sage@redhat.com>
Fri, 21 Dec 2018 04:11:40 +0000 (22:11 -0600)
commitb35f3e29fd07eb9fe59a01dec103a6a053123123
tree6db84fdcacda1283f2c6f58f58d1f1f7fec0c5bb
parent4872cc5aa32611e44705aebf93145a92d5df776a
mon/MgrMonitor: make find_module_option handle localized option names

If we get "mgr/$module/$instance/$option", normalize it to
"mgr/$module/$option" before looking it up.  That's because a
'mgr/dashboard/x/server_port' in our database is really the
'mgr/dashboard/server_port' option.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h