Merge "Pass flags to allow domain undefine with NVRAM"
authorTim Rozet <trozet@redhat.com>
Wed, 4 Oct 2017 18:06:35 +0000 (18:06 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 4 Oct 2017 18:06:35 +0000 (18:06 +0000)
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))