Skip to content

Commit

Permalink
Remove customvtfilter from __init__ because it is optional.
Browse files Browse the repository at this point in the history
Update tests accordingly.
  • Loading branch information
jjnicola committed Mar 21, 2019
1 parent 7c18e86 commit e7525b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ospd_openvas/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class OSPDopenvas(OSPDaemon):

""" Class for ospd-openvas daemon. """

def __init__(self, certfile, keyfile, cafile, customvtfilter):
def __init__(self, certfile, keyfile, cafile):
""" Initializes the ospd-openvas daemon's internal data. """

super(OSPDopenvas, self).__init__(certfile=certfile, keyfile=keyfile,
Expand Down
2 changes: 1 addition & 1 deletion tests/dummywrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def __init__(self, nvti, redis):
with patch('ospd_openvas.wrapper.OpenvasDB', return_value=redis):
with patch('ospd_openvas.wrapper.NVTICache', return_value=nvti):
with patch.object(OSPDopenvas, 'load_vts', return_value=None):
super().__init__('cert', 'key', 'ca', None)
super().__init__('cert', 'key', 'ca')

0 comments on commit e7525b2

Please sign in to comment.