Stop the container stop before destroying.
Make sure we stop the continer before destorying it. Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
@@ -99,6 +99,8 @@ class LXDContainerUtils(object):
|
||||
host=host):
|
||||
return
|
||||
|
||||
self.container_stop(instance_name, host)
|
||||
|
||||
(state, data) = self.client.client('destroy',
|
||||
instance=instance_name,
|
||||
host=host)
|
||||
|
||||
Reference in New Issue
Block a user