#NEWLINE# def _GetBestOfferingId( self , disk_size ) : #NEWLINE# #INDENT# ' Given a disk_size (in GB), try to find a disk\n    offering that is atleast as big as the requested\n    one.\n    ' #NEWLINE# disk_offerings = self . cs . list_disk_offerings ( ) #NEWLINE# sorted_do = sorted ( disk_offerings , key = ( lambda x : x [ 'disksize' ] ) ) #NEWLINE# for do in sorted_do : #NEWLINE# #INDENT# if ( int ( do [ 'disksize' ] ) >= disk_size ) : #NEWLINE# #INDENT# return do [ 'id' ] #NEWLINE# #UNINDENT# #UNINDENT# return None