PR#3507: kojivmd: cleanup VMs with UNDEFINE_NVRAM

Merges #3507
https://pagure.io/koji/pull-request/3507
This commit is contained in:
Tomas Kopecek 2022-09-16 09:10:26 +02:00
commit 891fce1259

View file

@ -1069,7 +1069,7 @@ class VMTaskManager(TaskManager):
return False
else:
# Removed all the disks successfully, so undefine the VM
vm.undefine()
vm.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM)
self.logger.info('Cleaned up VM %s', vm_name)
return True