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
Describe the bug
When a group is first created it works fine but if that group is deleted and terraform plan or apply is run it will return that there it received a 404 when checking the state causing the command to fail. You will have to remove the state so that it will recreate the group (i.e. terraform state rm artifactory_group.derekp_some_group). This appears to be related to or has the same issue as #775 and #772.
It would receive this error:
││ Error: Unable to Refresh Resource
│
│ with artifactory_group.derekp_some_group,
│ on artifactory.tf line 39, in resource "artifactory_group""derekp_some_group":
│ 39: resource "artifactory_group""derekp_some_group" {
│
│ An unexpected error occurred while attempting to refresh resource state.
│ Please retry the operation or report this issue to the provider developers.
│
│ HTTP Error:
│ 404 GET
│ <ART_URL>/artifactory/api/security/groups/derekp_some_group?includeUsers=false
│ {
│ "errors": [ {
│ "status": 404,
│ "message":"Not Found"
│ } ]
│ }
╵
Requirements for and issue
A 'terraform plan' or 'terraform apply' command will fail if it had previously created a group but that group was deleted on Artifactory.
To reproduce run these steps:
Run a terraform plan and apply that will create a group.
Go onto Artifactory and delete that group.
Re-run the terraform plan and apply commands and observe the 404.
Describe the bug
When a group is first created it works fine but if that group is deleted and terraform plan or apply is run it will return that there it received a 404 when checking the state causing the command to fail. You will have to remove the state so that it will recreate the group (i.e. terraform state rm artifactory_group.derekp_some_group). This appears to be related to or has the same issue as #775 and #772.
It would receive this error:
Requirements for and issue
To reproduce run these steps:
Expected behavior
The terraform provider should not fail when it gets a 404 from a group that no longer exists but recreates the group.
Additional context
n/a
The text was updated successfully, but these errors were encountered: