mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-22 22:03:55 +03:00
do not ignore hotplug parse errors
if we got an option which was not valid, we still wrote it to the config, and subsequently returned it on every api call instead, now we die instead of warn and do not accept invalid options Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
0567a4d572
commit
596a0a2056
@ -1232,7 +1232,7 @@ sub parse_hotplug_features {
|
||||
if ($feature =~ m/^(network|disk|cpu|memory|usb)$/) {
|
||||
$res->{$1} = 1;
|
||||
} else {
|
||||
warn "ignoring unknown hotplug feature '$feature'\n";
|
||||
die "invalid hotplug feature '$feature'\n";
|
||||
}
|
||||
}
|
||||
return $res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user