summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-09-27 14:35:54 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-27 14:35:54 +0000
commit34a15524a89ed6cd350c42be07754901dfe244f8 (patch)
tree7c15e23c8bf812c874ac927b6990f72c2755d6e3 /deploy
parent029b03673f5add0eae91980574382af89698b1b2 (diff)
parentd4f9612475a07773af182f244bcd597d25bf4cd8 (diff)
Merge "deploy: fix: remove storage files during cleanup"
Diffstat (limited to 'deploy')
-rw-r--r--deploy/environments/execution_environment.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/deploy/environments/execution_environment.py b/deploy/environments/execution_environment.py
index af0e130dd..3812902aa 100644
--- a/deploy/environments/execution_environment.py
+++ b/deploy/environments/execution_environment.py
@@ -46,9 +46,7 @@ class ExecutionEnvironment(object):
disk_files.append(source_file)
log('Deleting VM %s with disks %s' % (vm_name, disk_files))
exec_cmd('virsh destroy %s' % vm_name, False)
- exec_cmd('virsh undefine %s' % vm_name, False)
- for file in disk_files:
- delete(file)
+ exec_cmd('virsh undefine --managed-save --remove-all-storage %s' % vm_name, False)
def overwrite_xml(self, vm_xml, vm_definition_overwrite):
if not vm_definition_overwrite: