Remove to code path to check image for size, always use the imagestorage.
This commit is contained in:
parent
fb465fd66f
commit
f405d575a3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue