#NEWLINE# def get_tags( member ) : #NEWLINE# #INDENT# config = get_client ( ) . local . system . replset . find_one ( ) #NEWLINE# for m in config [ 'members' ] : #NEWLINE# #INDENT# if ( m [ 'host' ] == member ) : #NEWLINE# #INDENT# return m . get ( 'tags' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# raise Exception ( ( 'member %s not in config' % repr ( member ) ) )