mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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 <mprivozn@redhat.com>
This commit is contained in:
parent
07adbd4b1f
commit
3446750bab
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user