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: make consistent approach for multiple node attributes sets #201

Conversation

idevat
Copy link
Contributor

@idevat idevat commented Apr 17, 2024

Enhancement:
Handle node attributes with multiple attributes sets consistently with rest of the role.

Reason:
Node attributes multiple sets was handled in a manner inconsistent with the rest of the role. Instead of using only the first set and ignoring the rest, multiple sets was merged into one single set. Such inconsistency can confuse a user and may complicate the possible future addition of support for multiple sets.

Result:
Node attributes multiple set are handled consistently with the rest of the role. This behavior is also described more explicitly in README.md.

Issue Tracker Tickets (Jira or BZ if any):
https://issues.redhat.com/browse/RHEL-33076

idevat and others added 2 commits April 15, 2024 12:19
Currently, pcs does not support multiple nvsets and system role must
deal with it. The case of multiple nvsets in node attributes was handled
differently than multiple nvsets in other cases. This fix makes dealing
with node attributes consitent with the rest.

Also in README.md is now explicitly mentioned, that (in the cases of
multiple nvsets) only the first set is used and the rest are ignored.
@idevat idevat requested review from tomjelinek and richm as code owners April 17, 2024 16:24
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.50%. Comparing base (b0f0f96) to head (be58971).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #201   +/-   ##
=======================================
  Coverage   68.50%   68.50%           
=======================================
  Files           3        3           
  Lines         181      181           
=======================================
  Hits          124      124           
  Misses         57       57           

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

@tomjelinek
Copy link
Member

[citest]

@richm richm merged commit 6469998 into linux-system-roles:main Apr 18, 2024
23 checks passed
@idevat idevat deleted the fix-dealing-with-multiple-node-attributes-sets branch April 18, 2024 14:28
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.

3 participants