From 5b8b51cf305bcb7068a1c39562079d9a4e8a7b2e Mon Sep 17 00:00:00 2001 From: mmahacek Date: Mon, 6 Apr 2020 16:00:46 -0700 Subject: [PATCH] revert DNS report --- reports/ipam-reports/dns-reports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/ipam-reports/dns-reports.py b/reports/ipam-reports/dns-reports.py index 8377470..9ae27b7 100644 --- a/reports/ipam-reports/dns-reports.py +++ b/reports/ipam-reports/dns-reports.py @@ -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 not device.interfaces.exists(): + if device.interfaces is None: continue if device.name is None: self.log_info(device, "No device name") @@ -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 not device.interfaces.exists(): + if device.interfaces is None: continue if device.name is None: self.log_info(device, "No device name") @@ -63,4 +63,4 @@ def test_dns_aaaa_record(self): except dns.resolver.NoAnswer: self.log_success(device) except dns.resolver.NXDOMAIN: - self.log_success(device) + self.log_success(device) \ No newline at end of file