Revert "fix hetzner zone problem", add zone_id to filter (Hetzner) (#491)

This commit is contained in:
Luca Schöneberg 2023-01-13 22:30:06 +01:00 committed by GitHub
parent 5fcf4b37f2
commit 8d3a383587
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6223,7 +6223,7 @@ sub nic_hetzner_update {
$config{$domain}{"status-ipv$ipv"} = 'failed'; $config{$domain}{"status-ipv$ipv"} = 'failed';
# Get DNS 'A' or 'AAAA' record ID # Get DNS 'A' or 'AAAA' record ID
$url = "https://$config{$key}{'server'}/records"; $url = "https://$config{$key}{'server'}/records?zone_id=$zone_id";
$reply = geturl(proxy => opt('proxy'), $reply = geturl(proxy => opt('proxy'),
url => $url, url => $url,
headers => $headers headers => $headers
@ -6240,7 +6240,7 @@ sub nic_hetzner_update {
next; next;
} }
# Pull the ID out of the json, messy # Pull the ID out of the json, messy
my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type && &zone_id eq $_{zone_id}) ? $_->{id} : ()} @{$response->{records}}; my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type) ? $_->{id} : ()} @{$response->{records}};
# Set domain # Set domain
my $http_method=""; my $http_method="";