5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-02-01 09:47:23 +03:00

sdn: powerdns: fix counting records of existing rrset

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
This commit is contained in:
Stefan Hanreich 2024-03-04 18:33:42 +01:00 committed by Thomas Lamprecht
parent 2ca78c7556
commit 74dcbe9c08

View File

@ -138,7 +138,7 @@ sub del_a_record {
my $final_records = [ grep { $_->{content} ne $ip } $existing_rrset->{records}->@* ];
my $final_records_size = scalar($final_records->@*);
# early return if we didn't find our record (i.e., un/filtered record sets have the same size)
return if scalar($existing_rrset->{content}->@*) == $final_records_size;
return if scalar($existing_rrset->{records}->@*) == $final_records_size;
my $rrset = {
name => $fqdn,