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

Don't panic in vc_util #2257

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Don't panic in vc_util #2257

merged 2 commits into from
Feb 8, 2024

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented Feb 8, 2024

This ensures that the vc_util lib does not panic because of missing keys (keys specified in the cred spec argument but not in the subject properties).

This also updates the behavior when no arguments are supplied; before this the iteration was implicitly skipped by creating an empty hash map and iterating over it. Now we explicitly skip the check.

This ensures that the vc_util lib does not panic because of missing keys (keys specified in the cred spec argument but not in the subject properties).
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
(modulo clippy)

@nmattia nmattia merged commit 19dc972 into main Feb 8, 2024
63 checks passed
@nmattia nmattia deleted the nm-vc-util-nocrash branch February 8, 2024 11:29
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.

2 participants