]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: Use correct job type for destroying a domain
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Jan 2019 07:32:27 +0000 (08:32 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Feb 2019 10:13:56 +0000 (11:13 +0100)
Not that it would matter because LXC driver doesn't differentiate
the job types so far, but nevertheless the Destroy() should grab
LXC_JOB_DESTROY.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/lxc/lxc_driver.c

index 8ab83fb3a00edfb34d46d9cf9a742c1bf95e7f6e..f7001d2ea45b4ed3973e35a499945d29741159c1 100644 (file)
@@ -1462,7 +1462,7 @@ lxcDomainDestroyFlags(virDomainPtr dom,
     if (virDomainDestroyFlagsEnsureACL(dom->conn, vm->def) < 0)
         goto cleanup;
 
-    if (virLXCDomainObjBeginJob(driver, vm, LXC_JOB_MODIFY) < 0)
+    if (virLXCDomainObjBeginJob(driver, vm, LXC_JOB_DESTROY) < 0)
         goto cleanup;
 
     if (virDomainObjCheckActive(vm) < 0)