We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e465f commit 95a05f0Copy full SHA for 95a05f0
helper/schema/exports.go
@@ -3,9 +3,14 @@ package schema
3
import (
4
"github.com/hashicorp/go-cty/cty"
5
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
6
+ "github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim"
7
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/plans/objchange"
8
)
9
10
func NormalizeObjectFromLegacySDK(val cty.Value, schema *configschema.Block) cty.Value {
11
return objchange.NormalizeObjectFromLegacySDK(val, schema)
12
}
13
+
14
+func HCL2ValueFromConfigValue(v interface{}) cty.Value {
15
+ return hcl2shim.HCL2ValueFromConfigValue(v)
16
+}
0 commit comments