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

VSS: fix issue where the response error was not being set #301

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented Jul 31, 2023

While working on HCP issue I noticed that the error returned from Vault was never being set. The error was being assigned in the wrong scope. This PR ensures that the response error is properly scoped for later evaluation.

@benashz benashz added the bug Something isn't working label Jul 31, 2023
@benashz benashz requested a review from a team July 31, 2023 19:54
@benashz benashz added this to the v0.1.1 milestone Jul 31, 2023
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Nice catch, looks good!

controllers/vaultstaticsecret_controller.go Show resolved Hide resolved
@benashz benashz merged commit f8aa1ae into main Jul 31, 2023
@benashz benashz deleted the VAULT-18557/fix-vss-error-handling-shadowed branch July 31, 2023 21:41
@tvoran tvoran mentioned this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants