From b704d8257816f4af3b8f52c0482b1d9107be5c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 19 Jul 2023 12:22:04 +0200 Subject: [PATCH] update_vm_api: properly wrap arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- PVE/API2/Qemu.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index fd718f93..c7331f29 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 {