@pick_context_manager_reader
def s3_image_get_by_uuid(context, image_uuid):
 result = model_query(context, models.S3Image, read_deleted='yes').filter_by(uuid=image_uuid).first()
 if (not result):
  raise exception.ImageNotFound(image_id=image_uuid)
 return result

@ pick_context_manager_reader def s3_image_get_by_uuid ( context , image_uuid ) : result = model_query ( context , models . S3Image , read_deleted = 'yes' ) . filter_by ( uuid = image_uuid ) . first ( ) if ( not result ) : raise exception . ImageNotFound ( image_id = image_uuid ) return result
find local s3 image represented by the provided uuid .