Skip to content

Commit 24369ac

Browse files
authored
fix for ms defender parser: use endpoint instead of url when not v3 (#14343)
1 parent 6cbc85e commit 24369ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/tools/ms_defender/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def process_json_with_machine_info(self, vulnerability, machine):
194194
# TODO: Delete this after the move to Locations
195195
if "computerDnsName" in machine and machine["computerDnsName"] is not None:
196196
host = str(machine["computerDnsName"]).replace(" ", "").replace("(", "_").replace(")", "_")
197-
locations.append(URL(host=host))
197+
locations.append(Endpoint(host=host))
198198
if "lastIpAddress" in machine and machine["lastIpAddress"] is not None:
199199
locations.append(Endpoint(host=str(machine["lastIpAddress"])))
200200
if "lastExternalIpAddress" in machine and machine["lastExternalIpAddress"] is not None:

0 commit comments

Comments
 (0)