Skip to content

Commit

Permalink
Merge pull request greenbone#57 from jjnicola/staticmethod
Browse files Browse the repository at this point in the history
Make stop_scan a staticmethod.
  • Loading branch information
kroosec authored Oct 17, 2018
2 parents dfcd5ab + 870cf4c commit e9ebc1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ def handle_stop_scan_command(self, scan_et):
logger.info('{0}: Scan stopped.'.format(scan_id))
return simple_response_str('stop_scan', 200, 'OK')

def stop_scan(self, scan_id):
@staticmethod
def stop_scan(scan_id):
""" Should be implemented by subclass in case of a clean up before
terminating is needed. """

Expand Down

0 comments on commit e9ebc1a

Please sign in to comment.