From 4fdd2284c15b36bd7b900b8ce595032a0d362f52 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 29 Nov 2021 13:49:45 -0500 Subject: [PATCH] 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 --- src/pybind/mgr/prometheus/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 1c132064f60..b035dbb1fec 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() -- 2.39.5