# 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 = []
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)