src/rgw/setup/rgw.py
def _get_svc_name(conf: MappedConf):
        """Read service name from cluster.conf"""
        svc_name = None
        num_component = Rgw._get_cortx_conf(conf, const.NUM_COMPONENTS_KEY % Rgw._machine_id)
        for idx in range(0, num_component):
            if (Rgw._get_cortx_conf(conf,
                const.COMPONENT_NAME_KEY % (Rgw._machine_id, idx)) == const.COMPONENT_NAME):
                svc_name = Rgw._get_cortx_conf(conf,
                    const.SVC_NAME_KEY % (Rgw._machine_id, idx), const.COMPONENT_NAME)
                break
        Log.info(f'Service name for {const.COMPONENT_NAME} is {svc_name}')
        return svc_name
Read service name from cluster.conf
Read service name from cluster.conf
Read service name from cluster . conf
def _get_svc_name(conf: MappedConf):
        svc_name = None
        num_component = Rgw._get_cortx_conf(conf, const.NUM_COMPONENTS_KEY % Rgw._machine_id)
        for idx in range(0, num_component):
            if (Rgw._get_cortx_conf(conf,
                const.COMPONENT_NAME_KEY % (Rgw._machine_id, idx)) == const.COMPONENT_NAME):
                svc_name = Rgw._get_cortx_conf(conf,
                    const.SVC_NAME_KEY % (Rgw._machine_id, idx), const.COMPONENT_NAME)
                break
        Log.info(f'Service name for {const.COMPONENT_NAME} is {svc_name}')
        return svc_name
def _get_svc_name ( conf : MappedConf ) : svc_name = None num_component = Rgw . _get_cortx_conf ( conf , const . NUM_COMPONENTS_KEY % Rgw . _machine_id ) for idx in range ( 0 , num_component ) : if ( Rgw . _get_cortx_conf ( conf , const . COMPONENT_NAME_KEY % ( Rgw . _machine_id , idx ) ) == const . COMPONENT_NAME ) : svc_name = Rgw . _get_cortx_conf ( conf , const . SVC_NAME_KEY % ( Rgw . _machine_id , idx ) , const . COMPONENT_NAME ) break Log . info ( f'Service name for {const.COMPONENT_NAME} is {svc_name}' ) return svc_name
Read service name from cluster.conf
Read service name from cluster . conf
"""Read service name from cluster.conf"""
conf
MappedConf