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

Method set_module_option_ex

src/pybind/mgr/mgr_module.py:2200–2211  ·  view source on GitHub ↗

Set the value of a persistent configuration setting for the specified module. :param str module: :param str key: :param str val:

(self, module: str, key: str, val: OptionValue)

Source from the content-addressed store, hash-verified

2198 return self._set_module_option(key, val)
2199
2200 def set_module_option_ex(self, module: str, key: str, val: OptionValue) -> None:
2201 """
2202 Set the value of a persistent configuration setting
2203 for the specified module.
2204
2205 :param str module:
2206 :param str key:
2207 :param str val:
2208 """
2209 if module == self.module_name:
2210 self._validate_module_option(key)
2211 return self._ceph_set_module_option(module, key, str(val))
2212
2213 @API.perm('w')
2214 @API.expose

Callers 4

config_dashboardMethod · 0.80
post_removeMethod · 0.80
_self_test_configMethod · 0.80
setMethod · 0.80

Calls 2

Tested by

no test coverage detected