Skip to content

Commit

Permalink
Only check for active zones for a CNAME value warning
Browse files Browse the repository at this point in the history
  • Loading branch information
peteeckel committed Oct 18, 2024
1 parent 81f86bd commit a828eac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox_dns/views/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a828eac

Please sign in to comment.