api2: zones: fix update

This commit is contained in:
Alexandre Derumier 2021-11-05 09:06:43 +01:00 committed by Thomas Lamprecht
parent 83dcfd5733
commit 12206ae544

View 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};