You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following https://www.terraform.io/docs/providers/github/r/team_membership.html to create github user and make it a member of Github team. When I apply it, it successfully adds user and adds it in team but Issue is if I want to remove a user from the organization and remove its membership, it causes an error.
This issue was originally opened by @kahootali as hashicorp/terraform#23883. It was migrated here as a result of the provider split. The original body of the issue is below.
I am following https://www.terraform.io/docs/providers/github/r/team_membership.html to create github user and make it a member of Github team. When I apply it, it successfully adds user and adds it in team but Issue is if I want to remove a user from the organization and remove its membership, it causes an error.
Terraform Version
I have tested on terraform 0.11.11 and 0.12.7
Debug Output
Expected Behavior
The membership should have removed first and then the user from the organization.
Actual Behavior
It fails giving error
github_team_membership.user_team: Unexpected ID format (""), expected numerical ID. strconv.ParseInt: parsing "": invalid syntax
Steps to Reproduce
Now remove the
github_membership.user resource
andgithub_team_membership.team_member
resource and then apply again.It will ask to delete the user and its membership, which will then fail
The text was updated successfully, but these errors were encountered: