[pve-devel] [PATCH pve-network 2/2] sdn: powerdns: fix counting records of existing rrset
Stefan Hanreich
s.hanreich at proxmox.com
Mon Mar 4 18:33:42 CET 2024
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm b/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm
index ab20e8d..dae63d1 100644
--- a/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm
+++ b/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm
@@ -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,
--
2.39.2
More information about the pve-devel
mailing list