-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform plan inaccurate output when removing attributes to product types #508
Comments
Hi @elachance1 I think this happens because we store the attributes as a slice of structs, so when storing the data terraform sees that the attribute at position 0 (was first attribute, now second attribute) has changed instead of correctly deducing that the attribute at 0 was removed. I will have to dive in to this to see how to fix it |
Do you happen to have any updates on this one? It's a nasty one causing us serious headaches. |
Also looking for an update on this one. Thank you! |
Hello, started a POC with this terraform provider and also faced with this issue. Decided to postpone all activities until this issue is resolved. |
Hi, I'm facing the same issue, and looking for a solution as well. |
Hello, I'm in the ditch with you guys. Hoping this one gets resolved. |
Version information
1.9.2
1.14.3
Describe the bug
There seems to be a bug with the
terraform plan
when removing attributes of product type when they are not the last one in the file. (I haven't tried with other ressources)To Reproduce
terraform apply
with the following product type :Execute a
terraform plan
Terraform will give the following output :
The plan is misleading. It does not rename the first attribute into the second attribute. Otherwise, there should be inconsistencies with the data after the apply (second attribute should end up with the first attribute data) if the plan was accurate. But, it actually remove the first attribute as expected on CommerceTools.
Expected behavior
I would expect the same behaviour as we remove the last attribute of the file. Here is an example of the output we get when we remove the last attribute :
The text was updated successfully, but these errors were encountered: