Skip to content

[BUG]: github_organization_role_team create repeatedly after apply #3307

@brgsstm

Description

@brgsstm

Expected Behavior

After a org role team resource is applied, subsequent plan's should not attempt to create that resource.

Actual Behavior

subsequent plan/apply creates a new resource. The resource is not duplicated in the state.

initial apply
Image

subsequent plan
Image

Terraform Version

Terraform v1.14.4
on windows_amd64

  • provider registry.terraform.io/integrations/github v6.11.1

Affected Resource(s)

github_organization_role_team

Terraform Configuration Files

terraform {
  required_providers {
    github = {
      source  = "integrations/github"
      version = "~> 6.11.1"
    }
  }
}

resource "github_organization_role_team" "xxx" {
  role_id   = 8136
  team_slug = "xxx"
}

Steps to Reproduce

terraform apply

terraform plan

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions