mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu: Fix error for attach controller config for live guest
Fix the error message to indicate what exactly is failing - that the controller index provided matches an existing controller. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c1aaa253d2
commit
310051c847
@ -8040,8 +8040,9 @@ qemuDomainAttachDeviceConfig(virDomainDefPtr vmdef,
|
||||
if (controller->idx != -1 &&
|
||||
virDomainControllerFind(vmdef, controller->type,
|
||||
controller->idx) >= 0) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||
_("Target already exists"));
|
||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||
_("controller index='%d' already exists"),
|
||||
controller->idx);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user