This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor functions determining the return code
- refactor check_inplace_risk function - terminate with INTERNAL_EXCEPTION when unknown module result is detected - a module can now report an inplace risk only when the result of the module is "fail" - the purpose of the function is and has been to return a number (0-2) that corresponds to a severity of the issues found by Preupgrade Assistant modules - the returned number is determined by the modules' result (exit_x) and inplace risk (log_x_risk), whichever has higher severity - refactor replace_inplace_risk - its purpose is to replace particular modules' results in the report XML generated by OpenSCAP - it now replaces the result of a module: - from UNKNOWN to ERROR - from FAIL to ERROR if the module has no risk - from FAIL to NEEDS_INSPECTION if the module has SLIGHT or MEDIUM risk - from FAIL to NEEDS_ACTION if the module has HIGH risk - to ERROR if the module has some risk but the result isn't FAIL - remove update_inplace_risk function - dead code - fix incorrect OpenSCAP module results (not_applicable -> notapplicable, etc.) in settings.py
- Loading branch information
Showing
4 changed files
with
139 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.