mongoctl/objects/replicaset_cluster.py
def match_member_id(self, member_conf, current_member_confs):
        """
        Attempts to find an id for member_conf where fom current members confs
        there exists a element.
        Returns the id of an element of current confs
        WHERE member_conf.host and element.host are EQUAL or map to same host
        """
        if current_member_confs is None:
            return None

        for curr_mem_conf in current_member_confs:
            if is_same_address(member_conf['host'], curr_mem_conf['host']):
                return curr_mem_conf['_id']

        return None

        Attempts to find an id for member_conf where fom current members confs
        there exists a element.
        Returns the id of an element of current confs
        WHERE member_conf.host and element.host are EQUAL or map to same host
        
Attempts to find an id for member_conf where fom current members confs
there exists a element.
Returns the id of an element of current confs
WHERE member_conf.host and element.host are EQUAL or map to same host
Attempts to find an id for member_conf where fom current members confs there exists a element . Returns the id of an element of current confs WHERE member_conf . host and element . host are EQUAL or map to same host
def match_member_id(self, member_conf, current_member_confs):
        if current_member_confs is None:
            return None
        for curr_mem_conf in current_member_confs:
            if is_same_address(member_conf['host'], curr_mem_conf['host']):
                return curr_mem_conf['_id']
        return None
def match_member_id ( self , member_conf , current_member_confs ) : if current_member_confs is None : return None for curr_mem_conf in current_member_confs : if is_same_address ( member_conf [ 'host' ] , curr_mem_conf [ 'host' ] ) : return curr_mem_conf [ '_id' ] return None
Attempts to find an id for member_conf where fom current members confs
there exists a element.
Attempts to find an id for member_conf where fom current members confs there exists a element .
"""
        Attempts to find an id for member_conf where fom current members confs
        there exists a element.
        Returns the id of an element of current confs
        WHERE member_conf.host and element.host are EQUAL or map to same host
        """
self
member_conf
current_member_confs