]> git.proxmox.com Git - pve-network.git/commitdiff
api2: zones: fix update
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 5 Nov 2021 08:06:43 +0000 (09:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Nov 2021 18:00:06 +0000 (19:00 +0100)
PVE/API2/Network/SDN/Zones.pm

index 94855908da352bf6941853d7e108f9b700e41618..6e53240c2489f987a706cdec4e543e286d82395d 100644 (file)
@@ -284,9 +284,7 @@ __PACKAGE__->register_method ({
                }
            }
 
-           for my $k (%$opts) {
-               $scfg->{$k} = $opts->{$k};
-           }
+           $zone_cfg->{ids}->{$id} = $opts;
 
            my $dnsserver = $opts->{dns};
            raise_param_exc({ dns => "$dnsserver don't exist"}) if $dnsserver && !$dns_cfg->{ids}->{$dnsserver};