From: Sage Weil Date: Mon, 29 Nov 2021 18:49:45 +0000 (-0500) Subject: mgr/prometheus: define module options for standby X-Git-Tag: v17.1.0~309^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4fdd2284c15b36bd7b900b8ce595032a0d362f52;p=ceph.git mgr/prometheus: define module options for standby We need to define the options for the standby class as well in order for it to successfully make use of the default value for standby_error_status_code (and stadnby_behavior). Fixes: https://tracker.ceph.com/issues/53287 Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 1c132064f60d..b035dbb1fec5 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -1674,6 +1674,9 @@ class Module(MgrModule): class StandbyModule(MgrStandbyModule): + + MODULE_OPTIONS = Module.MODULE_OPTIONS + def __init__(self, *args: Any, **kwargs: Any) -> None: super(StandbyModule, self).__init__(*args, **kwargs) self.shutdown_event = threading.Event()