From: Sage Weil Date: Mon, 29 Nov 2021 18:49:45 +0000 (-0500) Subject: mgr/prometheus: define module options for standby X-Git-Tag: v16.2.8~218^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=305648a2a13ec94fa5dc0b55bd6166f975360de9;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 (cherry picked from commit 4fdd2284c15b36bd7b900b8ce595032a0d362f52) --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 896c0f4e3c5a..6e37037d5199 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -1422,6 +1422,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()