Skip to content

Commit

Permalink
only if image based
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 11, 2015
1 parent e73f101 commit cc89acf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipynbsrv/core/signals/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cc89acf

Please sign in to comment.