]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/mgr_module.py
update sources to v12.1.0
[ceph.git] / ceph / src / pybind / mgr / mgr_module.py
index 20a893a9e6bb396647f210be8b11e7f36303ddab..e76aa04be8a487244bce772b1f908e1f2a9981c0 100644 (file)
@@ -165,6 +165,14 @@ class MgrModule(object):
         # any ``COMMANDS``
         raise NotImplementedError()
 
+    def get_mgr_id(self):
+        """
+        Retrieve the mgr id.
+
+        :return: str
+        """
+        return ceph_state.get_mgr_id()
+
     def get_config(self, key):
         """
         Retrieve the value of a persistent configuration setting
@@ -174,6 +182,15 @@ class MgrModule(object):
         """
         return ceph_state.get_config(self._handle, key)
 
+    def get_config_prefix(self, key_prefix):
+        """
+        Retrieve a dict of config values with the given prefix
+
+        :param key_prefix: str
+        :return: str
+        """
+        return ceph_state.get_config_prefix(self._handle, key_prefix)
+
     def set_config(self, key, val):
         """
         Set the value of a persistent configuration setting