Skip to content

Commit

Permalink
Merge pull request #32 from dudacgf/master
Browse files Browse the repository at this point in the history
Fix issue #6 - incorrect value for level parameter
  • Loading branch information
TheGroundZero authored Nov 26, 2021
2 parents 5ff592d + 7c1c785 commit c2a4e58
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions openvasreporting/libs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ def __init__(self, input_files, output_file="openvas_report", min_level="none",
if cve_included is not None and not isinstance(cve_included, str):
raise TypeError("Expected str, got '{}' instead".format(type(cve_included)))

if min_level.lower() in Config.levels().values():
min_level = min_level[0]
else:
raise ValueError("Invalid value for level parameter, \
must be one of: c[ritical], h[igh], m[edium], l[low], n[one]")

if min_level.lower() in Config.levels().keys():
min_level = Config.levels()[min_level.lower()]
else:
Expand Down

0 comments on commit c2a4e58

Please sign in to comment.