Page MenuHomeDevCentral

D3382.diff
No OneTemporary

D3382.diff

diff --git a/utils/netbox/build-etc-hosts-drake.py b/utils/netbox/build-etc-hosts-drake.py
--- a/utils/netbox/build-etc-hosts-drake.py
+++ b/utils/netbox/build-etc-hosts-drake.py
@@ -94,6 +94,9 @@
if len(ip.dns_name) == 0:
continue
+ if ip.status.value not in ["active", "deprecated"]:
+ continue
+
address = clean_ip(ip.address)
short = get_short_dns_name(ip.dns_name)
print(f"{address} {short} {ip.dns_name}")

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 04:33 (17 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257173
Default Alt Text
D3382.diff (482 B)

Event Timeline