Skip to content

Commit

Permalink
ignore cleanup for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 11, 2015
1 parent a645b06 commit 465f645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipynbsrv/core/signals/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def delete_on_server(sender, container, **kwargs):
try:
container.server.get_container_backend().delete_container(container.backend_pk)
# cleanup internal images
if container.is_image_based() and container.image.is_internal and not container.has_clones():
if not Container.objects.filter(image=container.image).exists():
container.image.delete()
# if container.is_image_based() and container.image.is_internal and not container.has_clones():
# if not Container.objects.filter(image=container.image).exists():
# container.image.delete()
except ContainerNotFoundError as ex:
pass # already deleted
except ContainerBackendError as ex:
Expand Down

0 comments on commit 465f645

Please sign in to comment.