]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuDomainUndefineFlags: Fix error message
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 10 Dec 2017 14:25:42 +0000 (15:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Dec 2017 12:23:30 +0000 (13:23 +0100)
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 <mprivozn@redhat.com>
src/qemu/qemu_driver.c

index aa30b119aa899815a6a60587631d0a367b7037cf..97b194b057038f8b7a83f36483cd5a9a1a9b8680 100644 (file)
@@ -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;
         }
     }