Skip to content

Conversation

@bertdawg76
Copy link
Collaborator

What does this PR do?

This removes duplicates from custom grain value lists

What issues does this PR fix or reference?

Fixes #31427

Previous Behavior

Duplicate grain values were stored in the custom grain file

New Behavior

Duplicate grain values are not stored in the custom grain file

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

@bertdawg76 bertdawg76 requested a review from a team as a code owner September 3, 2025 21:41
@bertdawg76 bertdawg76 changed the base branch from master to 3006.x September 3, 2025 21:57
@bertdawg76 bertdawg76 added the test:full Run the full test suite label Sep 3, 2025
@barneysowood
Copy link
Collaborator

Hey @bertdawg76 - sorry, but I don't think this is the correct way to fix #31427 - please see my comments in the issue and in your other PR

@Sxderp
Copy link
Contributor

Sxderp commented Oct 5, 2025

Please see my recent PR for a more complete fix to the underlining problem. This PR causes "lists" to behave like "sets". They are not the same.

#68289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

salt.states.grains.list_present adds duplicates names

3 participants