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

Fix scan progress in which all hosts are dead or excluded. #295

Merged
merged 4 commits into from
Jul 2, 2020

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Jul 1, 2020

No description provided.

@codecov
Copy link

codecov bot commented Jul 1, 2020

Codecov Report

Merging #295 into ospd-20.08 will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           ospd-20.08     #295      +/-   ##
==============================================
+ Coverage       74.56%   74.72%   +0.15%     
==============================================
  Files              23       23              
  Lines            2540     2544       +4     
==============================================
+ Hits             1894     1901       +7     
+ Misses            646      643       -3     
Impacted Files Coverage Δ
ospd/datapickler.py 88.15% <100.00%> (ø)
ospd/ospd.py 75.78% <100.00%> (+0.11%) ⬆️
ospd/scan.py 91.55% <100.00%> (+1.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 683990d...789ae39. Read the comment docs.

ospd/ospd.py Outdated
@@ -619,13 +620,17 @@ def sort_host_finished(
scan_id, finished_hosts
)

def set_target_progress(self, scan_id: str):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this method set the scan progress instead of the target progress? Currently I find the term target a bit confusing here. Could there be several targets in a scan?

@bjoernricks bjoernricks merged commit f728e29 into greenbone:ospd-20.08 Jul 2, 2020
@jjnicola jjnicola deleted the zero-division branch July 2, 2020 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants