]> git.proxmox.com Git - qemu-server.git/commitdiff
do not ignore hotplug parse errors
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 30 May 2016 08:44:37 +0000 (10:44 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 31 May 2016 10:15:32 +0000 (12:15 +0200)
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>
PVE/QemuServer.pm

index 5813242075bcab55abef00a86f52bf875bd62436..2da9208c6b7e8e1058a0608bd49a755b5bde11fc 100644 (file)
@@ -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;