From 759ba20a5d91feb0e7d4dfb59687ac48f8987174 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Fri, 14 Dec 2018 15:16:50 +0000 Subject: [PATCH] pybind/mgr/prometheus: fix get option methods names (which has been renamed recently) Signed-off-by: Mykola Golub --- src/pybind/mgr/prometheus/module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index ed16435324ee7..f741f461c73a4 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) -- 2.39.5