Skip to content

Commit

Permalink
dojo: tools: tenable: pluginID for vuln_id_from_tool property should …
Browse files Browse the repository at this point in the history
…be taken from item attribute
  • Loading branch information
pna-nca committed Apr 29, 2024
1 parent 8900eff commit e12ad28
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dojo/tools/tenable/xml_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e12ad28

Please sign in to comment.