Make that change which allows for sparse pushes.

This commit is contained in:
yackob03 2014-01-02 17:39:38 -05:00
parent 8342dfcccf
commit ee80f43375

View file

@ -158,10 +158,6 @@ def create_repository(namespace, repository):
for existing in model.get_repository_images(namespace, repository):
if existing.docker_image_id in new_repo_images:
added_images.pop(existing.docker_image_id)
else:
logger.debug('Deleting existing image with id: %s' %
existing.docker_image_id)
existing.delete_instance(recursive=True)
for image_description in added_images.values():
model.create_image(image_description['id'], repo)