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 null object exception in bootstrap output when using cloudsource #1597

Conversation

sm3142
Copy link
Contributor

@sm3142 sm3142 commented Aug 17, 2023

When using Cloud Source repos with FAST, there is no workflow identity federation configuration, so local.cicd_providers[v["identity_provider"]] is null. When the bootstrap stage's output module tries to populate the audience local, this causes a null object exception.

There may be other ways to address this, but wrapping the call in a try block seemed the most painless to me.

@google-cla
Copy link

google-cla bot commented Aug 17, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Collaborator

@ludoo ludoo left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the quick fix!

@ludoo ludoo enabled auto-merge (squash) August 17, 2023 08:33
@juliocc
Copy link
Collaborator

juliocc commented Aug 17, 2023

@sm3142 I fixed the linting error. All tests should pass now

@sm3142
Copy link
Contributor Author

sm3142 commented Aug 17, 2023

@sm3142 I fixed the linting error. All tests should pass now

Uh, sorry about that 😳. Guess, I failed to do ./tools/tfdoc.py modules/my-changed-module.

Anyway, thanks for the quick turnaround.

@ludoo ludoo merged commit dcb3c32 into GoogleCloudPlatform:master Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants