atlassian / terraform-provider-artifactory

Terraform provider to manage Artifactory
Apache License 2.0
89 stars 42 forks source link

setting `artifactory_group.user_names` to `[]` produces correct plan but doesn't take effect #106

Closed antonmos closed 2 years ago

antonmos commented 2 years ago

Community Note

Terraform Version

Terraform v0.13.7

Affected Resource(s)

artifactory_group

Terraform Configuration Files

resource "artifactory_group" "power_users" {
  name      = "power-users"
  users_names = []
}

Expected Behavior

Users will be removed from the group

Actual Behavior

Plan is correct:

Terraform will perform the following actions:

  # artifactory_group.platform_team will be updated in-place
  ~ resource "artifactory_group" "power_users" {
        admin_privileges = false
        auto_join        = false
        id               = "power-users"
        name             = "power-users"
        realm            = "internal"
      ~ users_names      = [
          - "user1", 
        ]
    }

But users are not removed after terraform apply

Steps to Reproduce

  1. create a group with terraform
  2. add users via the UI
  3. update terraform to users_names = []
  4. terraform apply

Important Factoids

References

jamestoyer commented 2 years ago

Hi @antonmos,

This repo is deprecated in favour of github.com/jfrog/terraform-provider-artifactory. If you're having issues, your best bet is to post there

antonmos commented 2 years ago

thank you! opened https://github.com/jfrog/terraform-provider-artifactory/issues/253