diff options
| author | Alexandre Derumier <aderumier@odiso.com> | 2021-11-05 09:06:43 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2021-11-09 19:00:06 +0100 |
| commit | 12206ae54427fa133cd58ea15fdc1ef4cb73b17b (patch) | |
| tree | c38e3f1529b3f3be5ad8d203b9aefe7e7270749f | |
| parent | 83dcfd5733faa3aa97fe2603772e645e061d3ccf (diff) | |
api2: zones: fix update
| -rw-r--r-- | PVE/API2/Network/SDN/Zones.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/PVE/API2/Network/SDN/Zones.pm b/PVE/API2/Network/SDN/Zones.pm index 9485590..6e53240 100644 --- a/PVE/API2/Network/SDN/Zones.pm +++ b/PVE/API2/Network/SDN/Zones.pm @@ -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}; |
