#NEWLINE# def _get_zone_id_from_name( self , name ) : #NEWLINE# #INDENT# 'Return zone ID based on a zone.' #NEWLINE# results = self . client [ 'Account' ] . getDomains ( filter = { #NEWLINE# #INDENT# 'domains' : { #NEWLINE# #INDENT# 'name' : utils . query_filter ( name ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# return [ name [ 'id' ] for x in results ]