From cc89acf00f5ecf1e8da7abac045070e6b87777e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Ka=CC=88ser?= Date: Tue, 11 Aug 2015 16:15:03 +0200 Subject: [PATCH] only if image based --- ipynbsrv/core/signals/containers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ipynbsrv/core/signals/containers.py b/ipynbsrv/core/signals/containers.py index 75689d6..8350324 100644 --- a/ipynbsrv/core/signals/containers.py +++ b/ipynbsrv/core/signals/containers.py @@ -72,9 +72,10 @@ def create_on_server(sender, container, **kwargs): if container.is_image_based(): cmd = container.image.command image = container.image.backend_pk - elif container.is_clone() and container.clone_of.is_image_based(): + elif container.is_clone(): clone_of = container.clone_of.backend_pk - cmd = container.clone_of.image.command + if container.clone_of.is_image_based(): + cmd = container.clone_of.image.command result = None try: