#NEWLINE# def get_all_addrs( self , name ) : #NEWLINE# #INDENT# '\n        Returns the all addresses which the logical name would resolve to,\n        or raises NameNotFound if there is no known address for the given name.\n        ' #NEWLINE# ctx = context . get_context ( ) #NEWLINE# address_groups = ( self . address_groups or address_groups . address_groups ) #NEWLINE# try : #NEWLINE# #INDENT# address_list = list ( address_groups [ name ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# err_str = 'no address found for name {0}' . format ( name ) #NEWLINE# if ( ctx . stage_ip is None ) : #NEWLINE# #INDENT# err_str += ' (no stage communication configured; did you forget?)' #NEWLINE# #UNINDENT# raise NameNotFound ( err_str ) #NEWLINE# #UNINDENT# return address_list