MCPcopy Create free account
hub / github.com/ceph/ceph / get_module_option

Method get_module_option

src/pybind/mgr/mgr_module.py:951–961  ·  view source on GitHub ↗

Retrieve the value of a persistent configuration setting :param default: the default value of the config if it is not found

(self, key: str, default: OptionValue = None)

Source from the content-addressed store, hash-verified

949 return self._ceph_get_mgr_id()
950
951 def get_module_option(self, key: str, default: OptionValue = None) -> OptionValue:
952 """
953 Retrieve the value of a persistent configuration setting
954
955 :param default: the default value of the config if it is not found
956 """
957 r = self._ceph_get_module_option(key)
958 if r is None:
959 return self.MODULE_OPTION_DEFAULTS.get(key, default) # type: ignore[attr-defined]
960 else:
961 return r
962
963 def get_ceph_option(self, key: str) -> OptionValue:
964 return self._ceph_get_option(key)

Callers 1

__init__Method · 0.95

Calls 2

getMethod · 0.45

Tested by

no test coverage detected