Skip to content

Commit

Permalink
force parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 8, 2015
1 parent 53056b9 commit de3d7be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ipynbsrv/core/signals/container_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def delete_on_server(sender, image, **kwargs):
try:
# FIXME: isn't deleted....
backend = server.get_container_backend()
backend.delete_container_image(image.backend_pk, force=True)
backend.delete_container_image(image.backend_pk, True)
except ContainerImageNotFoundError:
pass # already removed
except ContainerBackendError as ex:
Expand Down
2 changes: 1 addition & 1 deletion ipynbsrv/core/signals/container_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def delete_on_server(sender, snapshot, **kwargs):
if snapshot is not None:
backend = snapshot.container.server.get_container_backend()
try:
backend.delete_container_snapshot(snapshot.backend_pk, force=True)
backend.delete_container_snapshot(snapshot.backend_pk, True)
except ContainerSnapshotNotFoundError as ex:
pass # already removed?
except ContainerBackendError as ex:
Expand Down
13 changes: 5 additions & 8 deletions ipynbsrv/core/signals/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ def delete_on_server(sender, container, **kwargs):
pass

try:
container.server.get_container_backend().delete_container(
container.backend_pk,
force=True
)
container.server.get_container_backend().delete_container(container.backend_pk, True)
except ContainerNotFoundError as ex:
pass # already deleted
except ContainerBackendError as ex:
Expand Down Expand Up @@ -149,7 +146,7 @@ def restart_on_server(sender, container, **kwargs):
"""
if container is not None:
try:
container.server.get_container_backend().restart_container(container.backend_pk)
container.server.get_container_backend().restart_container(container.backend_pk, True)
except ContainerBackendError as ex:
raise ex

Expand All @@ -161,7 +158,7 @@ def resume_on_server(sender, container, **kwargs):
"""
if container is not None:
try:
container.server.get_container_backend().resume_container(container.backend_pk)
container.server.get_container_backend().resume_container(container.backend_pk, True)
except ContainerBackendError as ex:
raise ex

Expand All @@ -185,7 +182,7 @@ def stop_on_server(sender, container, **kwargs):
"""
if container is not None:
try:
container.server.get_container_backend().stop_container(container.backend_pk)
container.server.get_container_backend().stop_container(container.backend_pk, True)
except ContainerBackendError as ex:
raise ex

Expand All @@ -197,7 +194,7 @@ def suspend_on_server(sender, container, **kwargs):
"""
if container is not None:
try:
container.server.get_container_backend().suspend_container(container.backend_pk)
container.server.get_container_backend().suspend_container(container.backend_pk, True)
except ContainerBackendError as ex:
raise ex

Expand Down

0 comments on commit de3d7be

Please sign in to comment.