diff options
author | Dan Radez <dradez@redhat.com> | 2017-10-03 14:25:04 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-10-06 15:00:44 +0000 |
commit | 8c9675c16e4350aa855c2d2c847fb18eed3a72ec (patch) | |
tree | 1fc756002733af59548da9e720a04c6b8f3068e4 | |
parent | 189b69a875d3eefca2a7eb3fa354b9f4930cbcd7 (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.py | 2 |
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)) |