-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add set_nvticache_str(). #150
Conversation
2c5b2e7
to
81960ab
Compare
Codecov Report
@@ Coverage Diff @@
## master #150 +/- ##
==========================================
+ Coverage 71.25% 71.59% +0.34%
==========================================
Files 4 4
Lines 981 1000 +19
==========================================
+ Hits 699 716 +17
- Misses 282 284 +2
Continue to review full report at Codecov.
|
771fa61
to
e61936a
Compare
The nvticache name in redis (dependent on the gvm-libs) will be checked for compatibility against a list of supported nvticache versions.
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.
Personally I am not sure about using distutils in python 3 because it is more or less deprecated. Instead I would use pkg_resource parse_version which comes with setuptools. The reason behind this is pkg_resources parse_version is PEP 440 compatible and i don't know if this is true for distutils.
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 the nvti cache version set when the NVTICache class is constructed? Is there any reason for not doing this automatically in the constructor?
The nvticache name in redis (dependent on the gvm-libs) will be checked
for compatibility against a list of supported nvticache versions.