Skip to content

Providers fails to update team permissions #147

Description

@galdor

Updating the units_map field of forgejo_team resources to change permissions from read to write fails with the following errors:

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to forgejo_team.normal["ml-engineering"], provider "provider[\"registry.opentofu.org/svalabs/forgejo\"]" produced an unexpected new value: .permission: was cty.StringVal("read"), but now
│ cty.StringVal("write").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

Tested with these resources:

resource "forgejo_team" "main" {
  for_each = local.forgejo_teams

  description     = each.value.title
  name            = each.key
  organization_id = forgejo_organization.normal.id
  units_map = {
    "repo.actions"  = "write"
    "repo.code"     = "write"
    "repo.issues"   = "write"
    "repo.packages" = "write"
    "repo.projects" = "write"
    "repo.pulls"    = "write"
    "repo.releases" = "write"
    "repo.wiki"     = "write"
  }
}
  • Forgejo 15.
  • Forgejo provider v1.4.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggoPull requests that update Go codequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions