mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
mgr/rbd_support: store global schedule without localized prefix
so it is still used after mgr failover Fixes: https://tracker.ceph.com/issues/48020 Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
parent
c0cf69e067
commit
e46e80474f
@ -343,7 +343,7 @@ class Schedules:
|
||||
|
||||
def load(self, namespace_validator=None, image_validator=None):
|
||||
|
||||
schedule_cfg = self.handler.module.get_localized_module_option(
|
||||
schedule_cfg = self.handler.module.get_module_option(
|
||||
self.handler.MODULE_OPTION_NAME, '')
|
||||
if schedule_cfg:
|
||||
try:
|
||||
@ -420,8 +420,8 @@ class Schedules:
|
||||
|
||||
def save(self, level_spec, schedule):
|
||||
if level_spec.is_global():
|
||||
schedule_cfg = schedule and schedule.to_json() or ''
|
||||
self.handler.module.set_localized_module_option(
|
||||
schedule_cfg = schedule and schedule.to_json() or None
|
||||
self.handler.module.set_module_option(
|
||||
self.handler.MODULE_OPTION_NAME, schedule_cfg)
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user