mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
924b97238f
Any state modifying functions can only be run once during the plan-apply cycle. When regenerating the Diff during ApplyResourceChange, strip out all StateFunc and CustomizeDiff functions from the schema. Thew NewExtra diff field was where config data that was modified by a StateFunc was stored, and needs to be maintained between plan and apply. During PlanResourceChange, store any NewExtra data from the Diff in the PlannedPrivate data, and re-insert the NewExtra data into the Diff generated during ApplyResourceChange. |
||
---|---|---|
.. | ||
convert | ||
discovery | ||
mock_proto | ||
client.go | ||
grpc_provider_test.go | ||
grpc_provider.go | ||
grpc_provisioner_test.go | ||
grpc_provisioner.go | ||
plugin_test.go | ||
plugin.go | ||
resource_provider_test.go | ||
resource_provider.go | ||
resource_provisioner_test.go | ||
resource_provisioner.go | ||
serve.go | ||
ui_input_test.go | ||
ui_input.go | ||
ui_output_test.go | ||
ui_output.go |