diff --git a/endpoints/registry.py b/endpoints/registry.py index 7d04b6409..2a77e1ef9 100644 --- a/endpoints/registry.py +++ b/endpoints/registry.py @@ -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)