linux-system-roles / storage

Ansible role for linux storage management
https://linux-system-roles.github.io/storage/
MIT License
99 stars 55 forks source link

test: make comparison work with ansible 2.9/jinja 2.7 #411

Closed richm closed 7 months ago

richm commented 7 months ago

The comparison was not working with ansible 2.9 and jinja 2.7. Use a temporary variable for the actual value to compare.

Signed-off-by: Rich Megginson rmeggins@redhat.com

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7fc8d76) 13.65% compared to head (638ba15) 13.65%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #411 +/- ## ======================================= Coverage 13.65% 13.65% ======================================= Files 8 8 Lines 1736 1736 Branches 79 79 ======================================= Hits 237 237 Misses 1499 1499 ``` | [Flag](https://app.codecov.io/gh/linux-system-roles/storage/pull/411/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=linux-system-roles) | Coverage Δ | | |---|---|---| | [sanity](https://app.codecov.io/gh/linux-system-roles/storage/pull/411/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=linux-system-roles) | `16.54% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=linux-system-roles#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.