Open kubiak95 opened 4 years ago
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.