From: Fabian Grünbichler Date: Wed, 19 Jul 2023 10:22:04 +0000 (+0200) Subject: update_vm_api: properly wrap arguments X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=b704d8257816f4af3b8f52c0482b1d9107be5c6c update_vm_api: properly wrap arguments Signed-off-by: Fabian Grünbichler --- diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index fd718f9..c7331f2 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1795,7 +1795,10 @@ my $update_vm_api = sub { } elsif ($opt =~ m/^net\d+$/) { if ($conf->{$opt}) { PVE::QemuServer::check_bridge_access( - $rpcenv, $authuser, { $opt => $conf->{$opt} }); + $rpcenv, + $authuser, + { $opt => $conf->{$opt} }, + ); } PVE::QemuConfig->add_to_pending_delete($conf, $opt, $force); PVE::QemuConfig->write_config($vmid, $conf); @@ -1870,7 +1873,10 @@ my $update_vm_api = sub { } elsif ($opt =~ m/^net\d+$/) { if ($conf->{$opt}) { PVE::QemuServer::check_bridge_access( - $rpcenv, $authuser, { $opt => $conf->{$opt} }); + $rpcenv, + $authuser, + { $opt => $conf->{$opt} }, + ); } $conf->{pending}->{$opt} = $param->{$opt}; } else {