Don't send the full image list on the /images call, as Docker doesn't seem to be using it anyway

This commit is contained in:
Joseph Schorr 2015-03-04 16:36:32 -05:00
parent 5d81d9d287
commit c47c9d6cb4

View file

@ -294,17 +294,8 @@ def get_repository_images(namespace, repository):
if not repo:
abort(404, message='Unknown repository', issue='unknown-repo')
all_images = []
logger.debug('Retrieving repository images')
for image in model.get_repository_images(namespace, repository):
new_image_view = {
'id': image.docker_image_id,
'checksum': image.storage.checksum,
}
all_images.append(new_image_view)
logger.debug('Building repository image response')
resp = make_response(json.dumps(all_images), 200)
resp = make_response(json.dumps([]), 200)
resp.mimetype = 'application/json'
track_and_log('pull_repo', repo)