From: Michal Privoznik Date: Sun, 10 Dec 2017 14:25:42 +0000 (+0100) Subject: qemuDomainUndefineFlags: Fix error message X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3446750bab844f16ee2176164e610a876e95a1d7;p=libvirt.git qemuDomainUndefineFlags: Fix error message https://bugzilla.redhat.com/show_bug.cgi?id=1522706 If domain is active, but the undefine API was called without the VIR_DOMAIN_UNDEFINE_KEEP_NVRAM flag set, the following incorrect error message is produced: error: Requested operation is not valid: cannot delete inactive domain with nvram Signed-off-by: Michal Privoznik --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index aa30b119aa..97b194b057 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -7538,7 +7538,7 @@ qemuDomainUndefineFlags(virDomainPtr dom, } } else if (!(flags & VIR_DOMAIN_UNDEFINE_KEEP_NVRAM)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot delete inactive domain with nvram")); + _("cannot undefine domain with nvram")); goto endjob; } }