We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dns-reports checks for dns entries for devices with IPs assigned to an interface. This line filters out devices with no interfaces, but in my case, it still returns devices with no interfaces, because it returns an empty QuerySet https://github.com/netbox-community/reports/blob/9b4a4fab71c5a10469988f362f410b295b9f317e/reports/ipam-reports/dns-reports.py#L13
I've fixed the issue locally by replacing it with this line. if not device.interfaces.exists():
if not device.interfaces.exists():
http://docs.djangoproject.com/en/dev/ref/models/querysets/#exists
The text was updated successfully, but these errors were encountered:
Update DNS interface check
2fdab93
Addresses netbox-community#28
Updated DNS interface checking
69f46ee
No branches or pull requests
dns-reports checks for dns entries for devices with IPs assigned to an interface. This line filters out devices with no interfaces, but in my case, it still returns devices with no interfaces, because it returns an empty QuerySet
https://github.com/netbox-community/reports/blob/9b4a4fab71c5a10469988f362f410b295b9f317e/reports/ipam-reports/dns-reports.py#L13
I've fixed the issue locally by replacing it with this line.
if not device.interfaces.exists():
http://docs.djangoproject.com/en/dev/ref/models/querysets/#exists
The text was updated successfully, but these errors were encountered: