(state)
Maps a mongod node state id to a human readable string.
Maps a mongod node state id to a human readable string.
Maps a mongod node state id to a human readable string .
def get_state_name(state):
    """Maps a mongod node state id to a human readable string."""
    if state in REPLSET_MEMBER_STATES:
        return REPLSET_MEMBER_STATES[state][0]
    else:
        return 'UNKNOWN'
def get_state_name ( state ) : if state in REPLSET_MEMBER_STATES : return REPLSET_MEMBER_STATES [ state ] [ 0 ] else : return 'UNKNOWN'