Make that change which allows for sparse pushes.
This commit is contained in:
parent
8342dfcccf
commit
ee80f43375
1 changed files with 0 additions and 4 deletions
|
@ -158,10 +158,6 @@ def create_repository(namespace, repository):
|
||||||
for existing in model.get_repository_images(namespace, repository):
|
for existing in model.get_repository_images(namespace, repository):
|
||||||
if existing.docker_image_id in new_repo_images:
|
if existing.docker_image_id in new_repo_images:
|
||||||
added_images.pop(existing.docker_image_id)
|
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():
|
for image_description in added_images.values():
|
||||||
model.create_image(image_description['id'], repo)
|
model.create_image(image_description['id'], repo)
|
||||||
|
|
Reference in a new issue