From 870cf4cda0eb00e47eb6014db4b0fe5045b6d333 Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Wed, 17 Oct 2018 06:59:35 -0400 Subject: [PATCH] Make stop_scan a staticmethod. --- ospd/ospd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ospd/ospd.py b/ospd/ospd.py index 64aaee45..aa514e07 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -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. """