]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/API2/Qemu.pm
update_vm_api: properly wrap arguments
[qemu-server.git] / PVE / API2 / Qemu.pm
index fd718f93322546d19f6bfa8489bef5eb759451a3..c7331f29e8b058d12493a9c63059b20bdb170422 100644 (file)
@@ -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 {