Pass flags to allow domain undefine with NVRAM 63/44263/2
authorDan Radez <dradez@redhat.com>
Tue, 3 Oct 2017 18:25:04 +0000 (14:25 -0400)
committerTim Rozet <trozet@redhat.com>
Fri, 6 Oct 2017 15:00:44 +0000 (15:00 +0000)
Change-Id: I8365dd327d4bf7abebc72922e030b3049cd66de9
Signed-off-by: Dan Radez <dradez@redhat.com>
(cherry picked from commit 30c7c9e4de1bbd4d4cdc6f0c775d52f80a3103fb)

apex/clean.py

index 0b1be86..f56287e 100644 (file)
@@ -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))