Skip to content
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

fix: check mode should not give an error #457

Closed
wants to merge 1 commit into from

Conversation

richm
Copy link
Contributor

@richm richm commented Jul 22, 2024

Cause: The blivet module was not looking for the check_mode flag before
reporting an error when the supporting modules could not be loaded.

Consequence: The storage role would give an error in check mode in the
"Get required packages" task.

Fix: See if the role is running in check mode, and do not report an
error if the underlying modules cannot be loaded. This is expected.

Result: The storage role does not print an error when running in
check mode.

Signed-off-by: Rich Megginson [email protected]

Cause: The blivet module was not looking for the check_mode flag before
reporting an error when the supporting modules could not be loaded.

Consequence: The storage role would give an error in check mode in the
"Get required packages" task.

Fix: See if the role is running in check mode, and do not report an
error if the underlying modules cannot be loaded.  This is expected.

Result: The storage role does not print an error when running in
check mode.

Signed-off-by: Rich Megginson <[email protected]>
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 10.76%. Comparing base (bb51979) to head (978ab07).
Report is 3 commits behind head on main.

Files Patch % Lines
library/blivet.py 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (bb51979) and HEAD (978ab07). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (bb51979) HEAD (978ab07)
sanity 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #457      +/-   ##
==========================================
- Coverage   16.54%   10.76%   -5.79%     
==========================================
  Files           2        8       +6     
  Lines         284     1942    +1658     
  Branches       79        0      -79     
==========================================
+ Hits           47      209     +162     
- Misses        237     1733    +1496     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richm richm closed this Jul 22, 2024
@richm richm deleted the check-mode branch July 22, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant