Skip to content

Commit

Permalink
Merge pull request #55 from cisagov/bugfix_dns_default_name_nonexistant
Browse files Browse the repository at this point in the history
spreadsheet_tools.py line 299 had attribute .name on dns_data which d…
  • Loading branch information
Dbones202 authored Jan 17, 2024
2 parents c89078d + fb613c4 commit a5e34f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navv/spreadsheet_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def handle_ip(ip_to_check, dns_data, inventory, segments, ext_IPs, unk_int_IPs):
for x in range(0, len(segments[:-1])):
if segments[x].network == ip_to_check:
if ip_to_check in dns_data:
resolution = dns_data[ip_to_check].name
resolution = dns_data[ip_to_check]
elif ip_to_check in inventory:
resolution = inventory[ip_to_check].name
else:
Expand Down

0 comments on commit a5e34f9

Please sign in to comment.