-
Notifications
You must be signed in to change notification settings - Fork 949
[BUG]: github_organization_role setting base_role = "none" causes permanent diff #3004
Copy link
Copy link
Closed
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Milestone
Description
Expected Behavior
Given a configuration like
resource "github_organization_role" "audit_viewer" {
name = "Audit Viewer"
description = "Access the Organization Audit Log"
base_role = "none"
permissions = [
"read_audit_logs"
]
}
it should get applied once and on subsequent plans do not cause any diff.
Actual Behavior
Terraform will perform the following actions:
# github_organization_role.audit_viewer will be updated in-place
~ resource "github_organization_role" "audit_viewer" ***
+ base_role = "none"
id = "12345"
name = "Audit Viewer"
# (3 unchanged attributes hidden)
***
Plan: 0 to add, 1 to change, 0 to destroy.
That change is applied on every subsequent run.
Terraform Version
$ terraform -v
Terraform v1.14.2
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v7.13.0
+ provider registry.terraform.io/hashicorp/googleworkspace v0.7.0
+ provider registry.terraform.io/integrations/github v6.9.0
Affected Resource(s)
- github_organization_role
Terraform Configuration Files
Steps to Reproduce
Run terraform apply twice or more.
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented