Problem while updating resource in custom terraform provider #612
Labels
bug
Something isn't working
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
Milestone
I am trying to write a custom terraform provider. In that, I have a resource called dash_panel which looks something like this:
Just to illustrate the issue, I have made this a local-only resource.
This resource is expected to return an xml that looks like this:
This is working as expected.
The problem starts when I try to update the chart. For example, If change the title to New Title
What I expect to get is:
What I am getting is:
Note: The placement of the empty chart is arbitrary, it is either before or after the chart with values.
Moreover, I noticed that there are two charts being passed in the schema.ResourceData of the update function of this resource.
I also noticed that this problem vanishes when I remove the options map from the chart schema.
Do let me know what I am doing wrong?
Other details:
The text was updated successfully, but these errors were encountered: