terraform-provider-octopusdeploy icon indicating copy to clipboard operation
terraform-provider-octopusdeploy copied to clipboard

Error: provider produced an unexpected new value

Open benPearce1 opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug After upgrading to provider version 0.30.0, running terraform plan may produce some unexpected errors on certain attributes that belong to resources migrated to Framework, as outlined in the 0.30.0 release

Error: provider produced an unexpected new value

There might be some errors around mismatched strings in the plan vs the state. These will look like this: "provider["registry.terraform.io/octopusdeploylabs/octopusdeploy"]" produced an unexpected new value: .template[2].help_text: was null, but now cty.StringVal("").

The workaround to this is to set the value in the config to an empty string. Report the resource name and the path of these errors in this issue.

These errors are occurring because the Framework implementation is very strict, while the SDKv2 implementation was lenient in enforcement of data consistency.

Environment and versions:

  • Terraform Version: 0.12.4
  • Octopus Terraform Provider Version: 0.30.0

Additional context Add any other context about the problem here.

benPearce1 avatar Sep 03 '24 04:09 benPearce1