mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
lxc: Drop useless check in live device update
Checking the new device definition makes little sense when lxc driver does not support live device update at all. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
64ba7803ca
commit
e3497f3fc8
@ -4939,9 +4939,6 @@ static int lxcDomainUpdateDeviceFlags(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flags & VIR_DOMAIN_AFFECT_LIVE) {
|
if (flags & VIR_DOMAIN_AFFECT_LIVE) {
|
||||||
if (virDomainDefCompatibleDevice(vm->def, dev_copy) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
||||||
_("Unable to modify live devices"));
|
_("Unable to modify live devices"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user