src/rgw/setup/rgw.py
def _get_cortx_conf(conf: MappedConf, key: str, default_value = None):
        """Read value from cluster config for given key"""
        val = conf.get(key)
        if val is None:
            if default_value is None:
                raise SetupError(errno.EINVAL, f'Value for {key} key is None.')
            else:
                val = default_value
        return val
Read value from cluster config for given key
Read value from cluster config for given key
Read value from cluster config for given key
def _get_cortx_conf(conf: MappedConf, key: str, default_value = None):
        val = conf.get(key)
        if val is None:
            if default_value is None:
                raise SetupError(errno.EINVAL, f'Value for {key} key is None.')
            else:
                val = default_value
        return val
def _get_cortx_conf ( conf : MappedConf , key : str , default_value = None ) : val = conf . get ( key ) if val is None : if default_value is None : raise SetupError ( errno . EINVAL , f'Value for {key} key is None.' ) else : val = default_value return val
Read value from cluster config for given key
Read value from cluster config for given key
"""Read value from cluster config for given key"""
conf
MappedConf
key
str
default_value