]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/prometheus: fix get option methods names
authorMykola Golub <mgolub@suse.com>
Fri, 14 Dec 2018 15:16:50 +0000 (15:16 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 14 Dec 2018 15:16:50 +0000 (15:16 +0000)
(which has been renamed recently)

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/prometheus/module.py

index ed16435324ee778615fd01e023ea5d4e452d30f2..f741f461c73a4d0e1822f25706a61b7324ea3ad9 100644 (file)
@@ -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)