From: Mykola Golub Date: Fri, 14 Dec 2018 15:16:50 +0000 (+0000) Subject: pybind/mgr/prometheus: fix get option methods names X-Git-Tag: v14.1.0~612^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=759ba20a5d91feb0e7d4dfb59687ac48f8987174;p=ceph.git pybind/mgr/prometheus: fix get option methods names (which has been renamed recently) Signed-off-by: Mykola Golub --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index ed16435324e..f741f461c73 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -549,7 +549,7 @@ class Module(MgrModule): # in the object name, the image pool is the pool where the object is # located. - pools = self.get_localized_config('rbd_stats_pools', '').split() + pools = self.get_localized_module_option('rbd_stats_pools', '').split() pools.sort() rbd_stats_pools = [] @@ -563,8 +563,8 @@ class Module(MgrModule): pools_refreshed = False if pools: next_refresh = self.rbd_stats['pools_refresh_time'] + \ - self.get_localized_config('rbd_stats_pools_refresh_interval', - 300) + self.get_localized_module_option( + 'rbd_stats_pools_refresh_interval', 300) rbd_stats_pools.sort() if rbd_stats_pools != pools or time.time() >= next_refresh: self.refresh_rbd_stats_pools(pools)