Skip to content

Commit

Permalink
Update DNS interface check
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahacek authored Apr 6, 2020
1 parent 3c3ddb6 commit 2fdab93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports/ipam-reports/dns-reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Check_DNS_A_Record(Report):

def test_dna_a_record(self):
for device in Device.objects.filter(status=DeviceStatusChoices.STATUS_ACTIVE):
if device.interfaces is None:
if not device.interfaces.exists():
continue
if device.name is None:
self.log_info(device, "No device name")
Expand All @@ -37,7 +37,7 @@ class Check_DNS_AAAA_Record(Report):

def test_dns_aaaa_record(self):
for device in Device.objects.filter(status=DeviceStatusChoices.STATUS_ACTIVE):
if device.interfaces is None:
if not device.interfaces.exists():
continue
if device.name is None:
self.log_info(device, "No device name")
Expand Down

0 comments on commit 2fdab93

Please sign in to comment.