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
However running terraform-plan again afterwards reveals that descriptions remain unchanged:
- description = "Group test description" -> null
Steps to Reproduce
Have an Artifactory group or a (local|remote|virutal) repository, state of which you track in Terraform. It also must have a non-empty description or internal note.
In your terraform config for these groups/repositories, remove the description. description = null, description = "" or not having description in the configuration should do it.
run terraform-plan and look at pending changes to the description field, should be a deletion e.g. - description = "Group test description" -> null.
run terraform-apply to confirm.
run terraform-plan again and see that description has not changed.
The text was updated successfully, but these errors were encountered:
I have noticed similar behaviour with smart NuGet repos and the feed_context_path attribute.
Terraform will detect that it should be set to an empty string (to support the smart repo behavior), sets it on apply. When running plan again it is not persisted and it defaults back to api/v2 which breaks the smart repo behavior.
Setting it manually via the UI persists the setting as a workaround.
Community Note
Terraform Version
Terraform v0.12.21
terraform-provider-artifactory 2.0.0-alpha1
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/kubiak95/1757694835c8cd2b71544351d4b99861
Expected Behavior
Based on the excerpt from
terraform-plan
outputThis test group's description should be removed after running
terrafrom-apply
Actual Behavior
Upon running
terraform-apply
, terraform shows that it's going to remove the description e.g.- description = "Group test description" -> null
And it confirms the changes afterwards:
Apply complete! Resources: 0 added, 4 changed, 0 destroyed.
However running
terraform-plan
again afterwards reveals that descriptions remain unchanged:- description = "Group test description" -> null
Steps to Reproduce
description = null
,description = ""
or not havingdescription
in the configuration should do it.terraform-plan
and look at pending changes to thedescription
field, should be a deletion e.g.- description = "Group test description" -> null
.terraform-apply
to confirm.terraform-plan
again and see that description has not changed.The text was updated successfully, but these errors were encountered: