@log_list_volumes
def get_blockdevice_volume(api, blockdevice_id):
 for volume in api.list_volumes():
  if (volume.blockdevice_id == blockdevice_id):
   return volume
 raise UnknownVolume(blockdevice_id)

@ log_list_volumes def get_blockdevice_volume ( api , blockdevice_id ) : for volume in api . list_volumes ( ) : if ( volume . blockdevice_id == blockdevice_id ) : return volume raise UnknownVolume ( blockdevice_id )
find a blockdevicevolume matching the given identifier .