Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Initialize end_time with create_scan #354

Merged
merged 2 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Use empty string instead of None for credential. [#335](https://github.com/greenbone/ospd/pull/335)
- Fix target_to_ipv4_short(). [#338](https://github.com/greenbone/ospd/pull/338)
- Fix malformed target. [#341](https://github.com/greenbone/ospd/pull/341)
- Initialize end_time with create_scan. [#354](https://github.com/greenbone/ospd/pull/354)

[20.8.2]: https://github.com/greenbone/ospd/compare/v20.8.1...ospd-20.08

Expand Down
1 change: 1 addition & 0 deletions ospd/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def create_scan(
scan_info['status'] = ScanStatus.QUEUED
scan_info['credentials'] = credentials
scan_info['start_time'] = int(time.time())
scan_info['end_time'] = 0

scan_info_to_pickle = {
'target': target,
Expand Down