Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I stumble on a bug while authorizing team on a repository using
github_team_repository
.The faulty code was something like :
Simple bug : I forgot to interpolate
github_team.some_team.id
so the provider get the stringgithub_team.some_team.id
instead of a proper team ID.It fails at apply with
Unexpected ID format ("github_team.some_team.id"), expected numerical ID. strconv.ParseInt: parsing "github_team.some_team.id": invalid syntax
I think it's a kind of error you can catch at plan time easily.
This PR introduce a validation of
team_id
on the two resource using it as parameters :github_team_repository
andgithub_team_membership
.It is a very basic check function that :
I tried the github provider on my faulty code it detects the error at plan time as expected.