summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2017-10-03 14:25:04 -0400
committerTim Rozet <trozet@redhat.com>2017-10-06 15:00:44 +0000
commit8c9675c16e4350aa855c2d2c847fb18eed3a72ec (patch)
tree1fc756002733af59548da9e720a04c6b8f3068e4
parent189b69a875d3eefca2a7eb3fa354b9f4930cbcd7 (diff)
Pass flags to allow domain undefine with NVRAM
Change-Id: I8365dd327d4bf7abebc72922e030b3049cd66de9 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 30c7c9e4de1bbd4d4cdc6f0c775d52f80a3103fb)
-rw-r--r--apex/clean.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/clean.py b/apex/clean.py
index 0b1be860..f56287e1 100644
--- a/apex/clean.py
+++ b/apex/clean.py
@@ -70,7 +70,7 @@ def clean_vms():
if domain.isActive():
logging.debug('Destroying domain')
domain.destroy()
- domain.undefine()
+ domain.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM)
# delete storage volume
try:
stgvol = pool.storageVolLookupByName("{}.qcow2".format(vm))