File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ def exec_scan(self, scan_id: str):
11711171 while kbdb .get_status (scan_id ) == 'new' :
11721172 res = openvas_process .poll ()
11731173 if res and res < 0 :
1174- self .stop_scan_cleanup (kbdb , scan_id , openvas_process )
1174+ self .stop_scan_cleanup (kbdb , scan_id , openvas_process . pid )
11751175 logger .error (
11761176 'It was not possible run the task %s, since openvas ended '
11771177 'unexpectedly with errors during launching.' ,
@@ -1198,7 +1198,7 @@ def exec_scan(self, scan_id: str):
11981198 if scan_stopped :
11991199 logger .debug ('%s: Scan stopped by the client' , scan_id )
12001200
1201- self .stop_scan_cleanup (kbdb , scan_id , openvas_process )
1201+ self .stop_scan_cleanup (kbdb , scan_id , openvas_process . pid )
12021202
12031203 # clean main_db, but wait for scanner to finish.
12041204 while not kbdb .target_is_finished (scan_id ):
You can’t perform that action at this time.
0 commit comments