]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: define module options for standby 44205/head
authorSage Weil <sage@newdream.net>
Mon, 29 Nov 2021 18:49:45 +0000 (13:49 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Fri, 3 Dec 2021 17:19:01 +0000 (00:19 +0700)
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>
(cherry picked from commit 4fdd2284c15b36bd7b900b8ce595032a0d362f52)

src/pybind/mgr/prometheus/module.py

index 896c0f4e3c5ac21f27854d10ce69c72e94513a40..6e37037d51996b3db43e84b7d84fde8a9cd3bd07 100644 (file)
@@ -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()