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

issue-227: improve error handling for access list resource #298

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

pgier
Copy link
Collaborator

@pgier pgier commented Sep 1, 2023

Fixes #227

Due to a bug in the astra go client, if the server responds with a 403 due to limited permissions, a JSON parsing error is reported to the user instead of reporting the actual permissions issue. This works around that by moving the response parsing code into the terraform provider.

This also adds a couple of nil pointer checks to prevent plugin crashes in certain situations.

Due to a bug in the astra go client, if the server responds with a 403 due to limited
permissions, a JSON parsing error is reported to the user instead of reporting the
actual permissions issue.  This works around that by moving the response parsing
code into the terraform provider.

This also adds a couple of nil pointer checks to prevent plugin crashes in certain
situations.
@pgier pgier merged commit 555e4fb into main Sep 6, 2023
4 checks passed
@msmygit msmygit deleted the issue-227-access-list-import branch September 15, 2023 16:40
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.

TERRA-108 ⁃ Unable to import astra_access_list resource
2 participants