From 465f645aaa36c9ebe5fdd0ce0372f5b939859c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Ka=CC=88ser?= Date: Tue, 11 Aug 2015 17:20:14 +0200 Subject: [PATCH] ignore cleanup for the moment --- ipynbsrv/core/signals/containers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipynbsrv/core/signals/containers.py b/ipynbsrv/core/signals/containers.py index a6329fe..5341fc5 100644 --- a/ipynbsrv/core/signals/containers.py +++ b/ipynbsrv/core/signals/containers.py @@ -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: