Merge pull request #39 from Hackndo/patch-1

Fix issue #37
This commit is contained in:
Robert Todora
2024-10-30 14:03:06 -05:00
committed by GitHub
+3 -1
View File
@@ -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