-
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
Improve logging for unsatisfied vts dependencies #336
Improve logging for unsatisfied vts dependencies #336
Conversation
Codecov Report
@@ Coverage Diff @@
## ospd-openvas-20.08 #336 +/- ##
======================================================
- Coverage 82.71% 81.83% -0.89%
======================================================
Files 9 9
Lines 1481 1519 +38
======================================================
+ Hits 1225 1243 +18
- Misses 256 276 +20
Continue to review full report at Codecov.
|
ospd_openvas/daemon.py
Outdated
@@ -717,9 +717,9 @@ def get_dependencies_vt_as_xml_str( | |||
vt_deps_xml = Element('dependencies') | |||
for dep in vt_dependencies: | |||
_vt_dep = Element('dependency') | |||
try: | |||
if "1.3.6.1.4.1.25623." in dep: |
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.
Could you please add a global constant for this OID value. From the outside this value is very difficult to understand.
…-5.7.3 Bump psutil from 5.7.2 to 5.7.3
What:
Log the file name of the missing dependency.
Why:
Because it is currently log only the OID of the problematic VT, but not the name of the missing dependency.
How:
Modify a nasl script, adding a typo to an existing dependency. Run openvas -u to update the Redis cache. Run <get_vts/> command. You will see in the logs, the name of the missing deps for the modified nasl plugin.
Checklist: