Remove to code path to check image for size, always use the imagestorage.

This commit is contained in:
Jake Moshenko 2014-06-12 19:51:01 -04:00
parent fb465fd66f
commit f405d575a3

View file

@ -288,7 +288,7 @@ def get_image_json(namespace, repository, image_id, headers):
flask_abort(404)
profile.debug('Looking up repo layer size')
size = (repo_image.storage and repo_image.storage.image_size) or repo_image.image_size
size = repo_image.storage.image_size
headers['X-Docker-Size'] = str(size)
response = make_response(data, 200)