From: Michal Privoznik Date: Thu, 24 Jan 2019 07:32:27 +0000 (+0100) Subject: lxc: Use correct job type for destroying a domain X-Git-Tag: v5.1.0-rc1~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797bdb3ce8a49b999f174d73c9104793e066280a;p=thirdparty%2Flibvirt.git lxc: Use correct job type for destroying a domain 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 Reviewed-by: Erik Skultety --- diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 8ab83fb3a0..f7001d2ea4 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -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)