]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/prometheus: define module options for standby
authorSage Weil <sage@newdream.net>
Mon, 29 Nov 2021 18:49:45 +0000 (13:49 -0500)
committerSage Weil <sage@newdream.net>
Mon, 29 Nov 2021 18:49:45 +0000 (13:49 -0500)
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 <sage@newdream.net>
src/pybind/mgr/prometheus/module.py

index 1c132064f60d18be10c60363d64e6596a4f7c221..b035dbb1fec5ee3617662b4259faa9361f45863b 100644 (file)
@@ -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()