src/rgw/setup/rgw.py
def _get_num_client_instances(conf: MappedConf, svc_name: str):
        """Read number of client instances."""
        client_idx = 0
        num_instances = 1
        while conf.get(const.CLIENT_INSTANCE_NAME_KEY % client_idx) is not None:
            name = Rgw._get_cortx_conf(conf, const.CLIENT_INSTANCE_NAME_KEY % client_idx)
            if name == svc_name:
                num_instances = int(Rgw._get_cortx_conf(conf, const.CLIENT_INSTANCE_NUMBER_KEY % client_idx))
                break
            client_idx = client_idx + 1
        return num_instances
Read number of client instances.
Read number of client instances.
Read number of client instances .
def _get_num_client_instances(conf: MappedConf, svc_name: str):
        client_idx = 0
        num_instances = 1
        while conf.get(const.CLIENT_INSTANCE_NAME_KEY % client_idx) is not None:
            name = Rgw._get_cortx_conf(conf, const.CLIENT_INSTANCE_NAME_KEY % client_idx)
            if name == svc_name:
                num_instances = int(Rgw._get_cortx_conf(conf, const.CLIENT_INSTANCE_NUMBER_KEY % client_idx))
                break
            client_idx = client_idx + 1
        return num_instances
def _get_num_client_instances ( conf : MappedConf , svc_name : str ) : client_idx = 0 num_instances = 1 while conf . get ( const . CLIENT_INSTANCE_NAME_KEY % client_idx ) is not None : name = Rgw . _get_cortx_conf ( conf , const . CLIENT_INSTANCE_NAME_KEY % client_idx ) if name == svc_name : num_instances = int ( Rgw . _get_cortx_conf ( conf , const . CLIENT_INSTANCE_NUMBER_KEY % client_idx ) ) break client_idx = client_idx + 1 return num_instances
Read number of client instances.
Read number of client instances .
"""Read number of client instances."""
conf
MappedConf
svc_name
str