From 1c8eb2e12569c4ffaddee5f944e8ec54b909f99a Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Tue, 26 Jan 2021 12:05:24 +0100 Subject: [PATCH] Initialize end_time with create_scan --- CHANGELOG.md | 1 + ospd/scan.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ab4cafc..25e70adb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,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 diff --git a/ospd/scan.py b/ospd/scan.py index e64b3aea..c9827cd5 100644 --- a/ospd/scan.py +++ b/ospd/scan.py @@ -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,