mirror of
https://github.com/cisagov/snafflepy
synced 2026-09-24 18:22:23 +00:00
@@ -158,7 +158,9 @@ def list_computers(connection: Connection, domain):
|
||||
|
||||
for entry in connection.entries:
|
||||
sep = str(entry).strip().split(':')
|
||||
domain_names.append(sep[6])
|
||||
# Sometimes there's no dNSHostName
|
||||
if len(sep) == 7:
|
||||
domain_names.append(sep[6])
|
||||
|
||||
return domain_names
|
||||
|
||||
|
||||
Reference in New Issue
Block a user