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/issue64 - added fallthrough in error handling #129

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

mathiaswegner
Copy link
Contributor

The boto3 call to get the secret value is wrapped in a try/except. The except block has a switch statement to raise different exceptions based on the error content. There was no fallthrough for the switch, so errors that were not explicitly defined were masked behind a subsequent error about the secret_value being referenced before it was assigned.

@mathiaswegner mathiaswegner requested a review from a team as a code owner May 16, 2024 15:43
Copy link
Contributor

@glennmatthews glennmatthews left a comment

Choose a reason for hiding this comment

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

Thanks!

@glennmatthews
Copy link
Contributor

CI is failing unrelated to your changes, we need to bring in the fix from nautobot/cookiecutter-nautobot-app#111.

@glennmatthews glennmatthews merged commit d6a8d7f into nautobot:develop Jun 24, 2024
16 checks passed
@DistantVoyager DistantVoyager linked an issue Jun 24, 2024 that may be closed by this pull request
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.

secret_value in AWS provider not getting set
2 participants