Skip to content

Commit

Permalink
Make stop_scan a staticmethod.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Oct 17, 2018
1 parent dfcd5ab commit 870cf4c
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 870cf4c

Please sign in to comment.