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

Method _get_module_option

src/pybind/mgr/mgr_module.py:2125–2134  ·  view source on GitHub ↗
(self,
                           key: str,
                           default: OptionValue,
                           localized_prefix: str = "")

Source from the content-addressed store, hash-verified

2123 format(key, self.__class__.__name__))
2124
2125 def _get_module_option(self,
2126 key: str,
2127 default: OptionValue,
2128 localized_prefix: str = "") -> OptionValue:
2129 r = self._ceph_get_module_option(self.module_name, key,
2130 localized_prefix)
2131 if r is None:
2132 return self.MODULE_OPTION_DEFAULTS.get(key, default) # type: ignore[attr-defined]
2133 else:
2134 return r
2135
2136 def get_module_option(self, key: str, default: OptionValue = None) -> OptionValue:
2137 """

Callers 3

get_module_optionMethod · 0.95
get_file_sd_configMethod · 0.80

Calls 2

getMethod · 0.45

Tested by

no test coverage detected