-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
Codecov Report
@@ Coverage Diff @@
## master #269 +/- ##
==========================================
+ Coverage 74.51% 74.56% +0.05%
==========================================
Files 21 21
Lines 2315 2320 +5
==========================================
+ Hits 1725 1730 +5
Misses 590 590
Continue to review full report at Codecov.
|
ospd/ospd.py
Outdated
self, | ||
scan_id: str, | ||
host: str = None, | ||
progress: Union[float, int] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should be a float still allowed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from the wrapper. It depends on the wrapper implementation. Currently ospd-openvas sends a float value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix that?
ospd/scan.py
Outdated
hosts = self.scans_table[scan_id]['target_progress'] | ||
if hosts: | ||
for host, progress in hosts.items(): | ||
hosts[host] = int(progress) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we ensure that progress is already an int in the scans table?
No description provided.