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)
| 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) |
no test coverage detected