Skip to content

Commit

Permalink
Merge pull request #442 from peteeckel/fix/cname-value-check-active
Browse files Browse the repository at this point in the history
Only check for active zones for a CNAME value warning
  • Loading branch information
peteeckel authored Oct 18, 2024
2 parents e9a7ea6 + a828eac commit e536d98
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 e536d98

Please sign in to comment.