Skip to content

Commit

Permalink
Merge pull request #74 from jjnicola/start-end-host-log
Browse files Browse the repository at this point in the history
Fix START_HOST and END_HOST result.
  • Loading branch information
jjnicola authored May 27, 2019
2 parents 95cbd4c + b99e695 commit 6d0c497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ospd_openvas/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,14 +1161,15 @@ def exec_scan(self, scan_id, target):
continue
if id_aux == openvas_scan_id:
no_id_found = False
self.get_openvas_timestamp_scan_host(scan_id, target)
current_host = self.openvas_db.get_host_ip()
self.get_openvas_result(scan_id, current_host)
self.get_openvas_status(scan_id, target, current_host)
self.get_openvas_timestamp_scan_host(scan_id, current_host)
if self.scan_is_finished(openvas_scan_id):
self.set_scan_host_finished(
scan_id, target, current_host)
self.get_openvas_status(scan_id, target, current_host)
self.get_openvas_timestamp_scan_host(scan_id, current_host)
self.openvas_db.select_kb(
ctx, str(self.main_kbindex), set_global=False)
self.openvas_db.remove_list_item('internal/dbindex', i)
Expand Down

0 comments on commit 6d0c497

Please sign in to comment.