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 regression in returning empty value for approle cidrlist. #13235

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

ncabatoff
Copy link
Collaborator

Fixes #13226

@ncabatoff ncabatoff added this to the 1.9.1 milestone Nov 22, 2021
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 22, 2021 13:32 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 22, 2021 13:32 Inactive
if len(in) == 0 {
// Don't change unnecessarily, if it was empty list leave as empty list
// instead of making it nil.
return in
Copy link
Contributor

@benashz benashz Nov 22, 2021

Choose a reason for hiding this comment

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

Wonder if we should have a test for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Feels like one of those things where if we were to apply a consistent standard, we'd need to add thousands more tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I figured as much. All good.

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.

unknown type <nil> for cidr_list in response for SecretID after upgrade to 1.9.0+ent
2 participants