From 91410ffe654030b024dee2afa32abe949f8b0c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Wed, 19 Feb 2025 11:45:55 +0100 Subject: [PATCH] Filter host overrides --- app/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__main__.py b/app/__main__.py index c7737ef..403f272 100644 --- a/app/__main__.py +++ b/app/__main__.py @@ -21,7 +21,7 @@ def fetch_netbox_host_overrides(nb_api: pynetbox.api) -> dict: """ nb_host_overrides = {} - for nb_ip_address in nb_api.ipam.ip_addresses.all(): + for nb_ip_address in nb_api.ipam.ip_addresses.filter(status='active'): if nb_ip_address.dns_name is None or nb_ip_address.dns_name == '': continue