Merge "Delete sandbox on capsule delete"

This commit is contained in:
Zuul 2018-04-13 09:04:14 +00:00 committed by Gerrit Code Review
commit c1faf09c6e

View File

@ -1158,6 +1158,7 @@ class Manager(periodic_task.PeriodicTasks):
container = \
objects.Container.get_by_uuid(context,
capsule.containers_uuids[0])
self._delete_sandbox(context, container, reraise=False)
self.container_delete(context, container, force=True)
except Exception as e:
LOG.exception(e)