From a828eacc2be4ca54e69400f278d5759df4e7f4a7 Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Fri, 18 Oct 2024 11:52:58 +0200 Subject: [PATCH] Only check for active zones for a CNAME value warning --- netbox_dns/views/record.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox_dns/views/record.py b/netbox_dns/views/record.py index 474f2f30..f5878fe7 100644 --- a/netbox_dns/views/record.py +++ b/netbox_dns/views/record.py @@ -73,6 +73,7 @@ def get_value_records(self, instance): if Zone.objects.filter( name__in=get_parent_zone_names(instance.value_fqdn, min_labels=1), view=instance.zone.view, + active=True, ).exists(): raise ( CNAMEWarning(