opentofu/builtin
Martin Atkins 477da57a92 helper/plugin: Honor resource type overrides in import
One quirky aspect of our import feature is that we allow the importer to
produce additional resources alongside the one that was imported, such as
to create separate rules for each rule of an imported security group.

Providers need to be able to set the types of these other resources since
they may not match the "main" resource type. They do this by calling
ResourceData.SetType, which in turn sets InstanceState.Ephemeral.Type.

In our shims here we therefore need to copy that out into our new TypeName
field so that the new core import code can see it and create the right
type in the state.

Testing this required a minor change to the test harness to allow the
ImportStateCheck function to see the resource type.
2019-01-30 09:05:08 -08:00
..
bins Initial implementation of a habitat provisioner 2017-12-07 16:29:30 -08:00
providers helper/plugin: Honor resource type overrides in import 2019-01-30 09:05:08 -08:00
provisioners Merge pull request #18533 from alice-sawatzky/master 2018-10-11 10:29:01 +02:00