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 error handling in creation of service account keys #612

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bgandon
Copy link

@bgandon bgandon commented Jan 22, 2024

SUMMARY

When creating a service account key with the google.cloud.gcp_iam_service_account_key module, when the service_account.name was incorrect, the 404 error was improperly interpreted as normal business, and resulted in a cryptic stacktrace. Plus, the gcp_iam_service_account_key module had no integration test at all.

Here we fix the above issue and we add proper integration test cases.

Fixes: #244

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

This affects the google.cloud.gcp_iam_service_account_key module only.

ADDITIONAL INFORMATION

Passing tests: ansible-test integration "gcp_iam_service_account_key".

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.

gcp_iam_service_account_key - TypeError: 'NoneType' object is not subscriptable
1 participant