mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: On attach to live XML check for user alias collision only live XML
When attaching a device to live XML we don't care (well, shouldn't care) that there's already a device in inactive XML that has the same user alias. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c4c44b535b
commit
57eb2936f3
@ -8663,7 +8663,8 @@ qemuDomainAttachDeviceLiveAndConfig(virDomainObjPtr vm,
|
||||
driver->xmlopt, parse_flags)))
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainDeviceValidateAliasForHotplug(vm, devLive, flags) < 0)
|
||||
if (virDomainDeviceValidateAliasForHotplug(vm, devLive,
|
||||
VIR_DOMAIN_AFFECT_LIVE) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainDefCompatibleDevice(vm->def, devLive, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user