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

CA-368437 remove duplicate keys from SM.features #5493

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Mar 8, 2024

Backport of 2386ed7

The association list SM.features frequently contains duplicate keys. This is problematic because they could bind to different values (which are versions in this case).

When parsing the features from a list of strings, eliminate duplicate keys. In addition, simplify the implementation and avoid duplicate work by using List.filter_map.

Backport of 2386ed7

The association list SM.features frequently contains duplicate keys.
This is problematic because they could bind to different values (which
are versions in this case).

When parsing the features from a list of strings, eliminate duplicate
keys. In addition, simplify the implementation and avoid duplicate work
by using List.filter_map.

Signed-off-by: Christian Lindig <[email protected]>
@lindig lindig requested review from robhoes and edwintorok March 8, 2024 10:15
@lindig lindig merged commit 52abc17 into xapi-project:1.249-lcm Mar 8, 2024
5 checks passed
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