Skip to content

Commit

Permalink
Rename var for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGroundZero committed Sep 13, 2018
1 parent 00ef189 commit 4f6e086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openvasreporting/libs/parsed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def __init__(self, vuln_id, name, threat, **kwargs):
# Hosts
self.hosts = []

def add_host(self, host, port):
def add_vuln_host(self, host, port):
"""
Add a host and a port associated to this vulnerability
Expand Down
2 changes: 1 addition & 1 deletion openvasreporting/libs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def openvas_parser(input_files, min_lvl=Config.levels()["n"]):
family=vuln_family,
level=vuln_level)

vuln_store.add_host(host, port)
vuln_store.add_vuln_host(host, port)
vulnerabilities[vuln_id] = vuln_store

return list(vulnerabilities.values())

0 comments on commit 4f6e086

Please sign in to comment.