Fix image API for V2 images

This commit is contained in:
Joseph Schorr 2015-08-13 15:43:49 -04:00
parent 1f0c7f9cff
commit 0e93dbb832

View file

@ -12,7 +12,7 @@ from util.cache import cache_control_flask_restful
def image_view(image, image_map, include_ancestors=True):
# TODO: Remove once we've migrated all storage data to the image records.
# TODO: Remove this once we've migrated all storage data to the image records.
storage_props = image
if image.storage and image.storage.id:
storage_props = image.storage