Fix the container delete uuid issue
Query db first to make sure container exist or not, and then call remote api for container Closes-Bug: #1453709 Change-Id: Ib74120a5d7f560e878b7dd26183173679c6cc75c
This commit is contained in:
parent
16e7e71467
commit
8b6893e7fb
|
@ -391,7 +391,7 @@ class ContainersController(rest.RestController):
|
|||
if self.from_containers:
|
||||
raise exception.OperationNotPermitted
|
||||
|
||||
pecan.request.rpcapi.container_delete(container_uuid)
|
||||
rpc_container = objects.Container.get_by_uuid(pecan.request.context,
|
||||
container_uuid)
|
||||
container_uuid)
|
||||
pecan.request.rpcapi.container_delete(container_uuid)
|
||||
rpc_container.destroy()
|
||||
|
|
Loading…
Reference in New Issue