#NEWLINE# def get_volume_id( self , volume_name ) : #NEWLINE# #INDENT# volumes = self . cinderclient . volumes . list ( search_opts = { #NEWLINE# #INDENT# 'all_tenants' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# for volume in volumes : #NEWLINE# #INDENT# if ( volume_name . display_name == volume_name ) : #NEWLINE# #INDENT# return volume . id #NEWLINE# #UNINDENT# #UNINDENT# raise test_exceptions . NotFound ( ( 'Volume with name "%s" was not found' % volume_name ) )