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

Method set_module_option

src/pybind/mgr/mgr_module.py:2189–2198  ·  view source on GitHub ↗

Set the value of a persistent configuration setting :param str key: :type val: str | None :raises ValueError: if `val` cannot be parsed or it is out of the specified range

(self, key: str, val: Any)

Source from the content-addressed store, hash-verified

2187 None if val is None else str(val))
2188
2189 def set_module_option(self, key: str, val: Any) -> None:
2190 """
2191 Set the value of a persistent configuration setting
2192
2193 :param str key:
2194 :type val: str | None
2195 :raises ValueError: if `val` cannot be parsed or it is out of the specified range
2196 """
2197 self._validate_module_option(key)
2198 return self._set_module_option(key, val)
2199
2200 def set_module_option_ex(self, module: str, key: str, val: OptionValue) -> None:
2201 """

Callers

nothing calls this directly

Calls 2

_set_module_optionMethod · 0.95

Tested by

no test coverage detected