diff --git a/dojo/tools/ms_defender/parser.py b/dojo/tools/ms_defender/parser.py index bbc2b0c0761..cf5b9b36f31 100644 --- a/dojo/tools/ms_defender/parser.py +++ b/dojo/tools/ms_defender/parser.py @@ -194,7 +194,7 @@ def process_json_with_machine_info(self, vulnerability, machine): # TODO: Delete this after the move to Locations if "computerDnsName" in machine and machine["computerDnsName"] is not None: host = str(machine["computerDnsName"]).replace(" ", "").replace("(", "_").replace(")", "_") - locations.append(URL(host=host)) + locations.append(Endpoint(host=host)) if "lastIpAddress" in machine and machine["lastIpAddress"] is not None: locations.append(Endpoint(host=str(machine["lastIpAddress"]))) if "lastExternalIpAddress" in machine and machine["lastExternalIpAddress"] is not None: