Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: network_state must be defined in defaults/main.yml #702

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Jul 3, 2024

As part of the public API, network_state must be defined in
defaults/main.yml, and it must be defined with the correct
type dict, so the correct default value must be {} the
empty dict.

All checking for network_state must check for a value of
{} to mean "network_state not set or empty".

Fix the test which looks for teaming configuration in EL10
to correctly look for the value in network_state.

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

@richm richm requested a review from liangwen12year as a code owner July 3, 2024 19:21
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.22%. Comparing base (34d1f2d) to head (e7294a1).
Report is 13 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #702       +/-   ##
===========================================
+ Coverage   20.50%   43.22%   +22.72%     
===========================================
  Files          10       12        +2     
  Lines        1478     3100     +1622     
  Branches      433        0      -433     
===========================================
+ Hits          303     1340     +1037     
- Misses       1174     1760      +586     
+ Partials        1        0        -1     
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.

@liangwen12year
Copy link
Collaborator

[citest]

As part of the public API, `network_state` must be defined in
defaults/main.yml, and it must be defined with the correct
type `dict`, so the correct default value must be `{}` the
empty dict.

All checking for `network_state` must check for a value of
`{}` to mean "network_state not set or empty".

Fix the test which looks for teaming configuration in EL10
to correctly look for the value in `network_state`.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm richm force-pushed the network-state-in-defaults branch from 91790df to e7294a1 Compare July 3, 2024 21:32
@richm
Copy link
Contributor Author

richm commented Jul 3, 2024

[citest]

@richm richm merged commit 80fb52b into linux-system-roles:main Jul 8, 2024
29 of 33 checks passed
@richm richm deleted the network-state-in-defaults branch July 8, 2024 15:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants