Closed bflad closed 11 months ago
one general question, the linked issue also mentions GetRawPlan and GetRawState, are we going to eventually populate those as well?
Provider configuration only contains configuration data. It does not participate in the plan (similar to data sources) nor does Terraform preserve a prior state.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Closes #1270
This change is intended to be as targeted as possible to prevent other unintended changes. In other RPCs, the protocol configuration data is able to be set upfront via
terraform.InstanceState
, however for provider configuration it is still using the legacyterraform.ResourceConfig
value which previously did not have the same data field. This adds the data field while trying to be pragmatic about potentially breaking compatibility with the unfortunately exported APIs in this SDK.This change also tangentially fixes
GetOkExists
to now return atrue
second result when a configurationNew test failures prior to updating logic:
In terms of prior (errant)
GetOkExists()
behavior, this causes this behavior change/fix: