diff --git a/dojo/tools/tenable/xml_format.py b/dojo/tools/tenable/xml_format.py index 01f991966ea..c44915a8a22 100644 --- a/dojo/tools/tenable/xml_format.py +++ b/dojo/tools/tenable/xml_format.py @@ -222,10 +222,7 @@ def get_findings(self, filename: str, test: Test) -> list: if cvss is not None: severity = self.get_cvss_severity(cvss) - vuln_id_from_tool = None - vuln_id_from_tool_text = self.safely_get_element_text(item.find("pluginID")) - if vuln_id_from_tool_text is not None: - vuln_id_from_tool = vuln_id_from_tool_text + vuln_id_from_tool = str(item.attrib.get("pluginID", "")) # Determine the current entry has already been parsed in # this report