Skip to content

Commit

Permalink
Update terraform-plugin-go and terraform-plugin-sdk (#1551)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Somesan <alex.somesan@gmail.com>
  • Loading branch information
jrhouston and alexsomesan authored Jan 24, 2022
1 parent b6009a9 commit 5cfbb54
Show file tree
Hide file tree
Showing 301 changed files with 18,097 additions and 5,951 deletions.
19 changes: 8 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,21 @@ require (
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-hclog v0.16.0
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.1
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/hashicorp/go-hclog v1.1.0
github.com/hashicorp/go-plugin v1.4.3
github.com/hashicorp/go-version v1.3.0
github.com/hashicorp/hcl/v2 v2.9.1
github.com/hashicorp/terraform-exec v0.14.0
github.com/hashicorp/terraform-json v0.12.0
github.com/hashicorp/terraform-plugin-go v0.3.1
github.com/hashicorp/terraform-exec v0.15.0
github.com/hashicorp/terraform-json v0.13.0
github.com/hashicorp/terraform-plugin-go v0.7.0
github.com/hashicorp/terraform-plugin-mux v0.2.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.0
github.com/hashicorp/terraform-plugin-test/v2 v2.2.1
github.com/hashicorp/yamux v0.0.0-20210316155119-a95892c5f864 // indirect
github.com/jinzhu/copier v0.2.9
github.com/klauspost/compress v1.12.1 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/hashstructure v1.1.0
github.com/mitchellh/mapstructure v1.4.1 // indirect
Expand All @@ -43,14 +40,14 @@ require (
github.com/stretchr/testify v1.7.0
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/xlab/treeprint v1.1.0 // indirect
github.com/zclconf/go-cty v1.8.4
github.com/zclconf/go-cty v1.9.1
go.starlark.net v0.0.0-20210406145628-7a1108eaa012 // indirect
golang.org/x/mod v0.4.2
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect
golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72 // indirect
google.golang.org/api v0.44.0 // indirect
google.golang.org/grpc v1.38.0
google.golang.org/grpc v1.43.0
k8s.io/api v0.22.4
k8s.io/apiextensions-apiserver v0.22.4
k8s.io/apimachinery v0.22.4
Expand Down
60 changes: 41 additions & 19 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform-exec/tfexec"
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
tf5server "github.com/hashicorp/terraform-plugin-go/tfprotov5/server"
tf5server "github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server"
tfmux "github.com/hashicorp/terraform-plugin-mux"

"github.com/hashicorp/terraform-provider-kubernetes/kubernetes"
Expand Down
22 changes: 11 additions & 11 deletions manifest/morph/morph.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func morphListToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath)
case t.Is(tftypes.List{}):
var nlvals []tftypes.Value = make([]tftypes.Value, len(lvals))
for i, v := range lvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.List).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph list element into list element: %v", elp.String(), err)
Expand All @@ -131,7 +131,7 @@ func morphListToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath)
}
var tvals []tftypes.Value = make([]tftypes.Value, len(lvals))
for i, v := range lvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.Tuple).ElementTypes[i], elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph list element into tuple element: %v", elp.String(), err)
Expand All @@ -142,7 +142,7 @@ func morphListToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath)
case t.Is(tftypes.Set{}):
var svals []tftypes.Value = make([]tftypes.Value, len(lvals))
for i, v := range lvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.Set).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph list element into set element: %v", elp.String(), err)
Expand Down Expand Up @@ -180,7 +180,7 @@ func morphTupleIntoType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePat
}
}
for i, v := range tvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, eltypes[i], elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph tuple element into tuple element: %v", elp.String(), err)
Expand All @@ -191,7 +191,7 @@ func morphTupleIntoType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePat
case t.Is(tftypes.List{}):
var lvals []tftypes.Value = make([]tftypes.Value, len(tvals))
for i, v := range tvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.List).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph tuple element into list element: %v", elp.String(), err)
Expand All @@ -202,7 +202,7 @@ func morphTupleIntoType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePat
case t.Is(tftypes.Set{}):
var svals []tftypes.Value = make([]tftypes.Value, len(tvals))
for i, v := range tvals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.Set).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph tuple element into set element: %v", elp.String(), err)
Expand All @@ -226,7 +226,7 @@ func morphSetToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath) (
case t.Is(tftypes.Set{}):
var svals []tftypes.Value = make([]tftypes.Value, len(svals))
for i, v := range svals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.Set).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph set element into set element : %v", elp.String(), err)
Expand All @@ -237,7 +237,7 @@ func morphSetToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath) (
case t.Is(tftypes.List{}):
var lvals []tftypes.Value = make([]tftypes.Value, len(svals))
for i, v := range svals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.List).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph set element into list element : %v", elp.String(), err)
Expand All @@ -251,7 +251,7 @@ func morphSetToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath) (
}
var tvals []tftypes.Value = make([]tftypes.Value, len(svals))
for i, v := range svals {
elp := p.WithElementKeyInt(int64(i))
elp := p.WithElementKeyInt(i)
nv, err := ValueToType(v, t.(tftypes.Tuple).ElementTypes[i], elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph list element into tuple element: %v", elp.String(), err)
Expand Down Expand Up @@ -287,7 +287,7 @@ func morphMapToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath) (
var nmvals map[string]tftypes.Value = make(map[string]tftypes.Value, len(mvals))
for k, v := range mvals {
elp := p.WithElementKeyString(k)
nv, err := ValueToType(v, t.(tftypes.Map).AttributeType, elp)
nv, err := ValueToType(v, t.(tftypes.Map).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph object element into map element: %v", elp.String(), err)
}
Expand Down Expand Up @@ -333,7 +333,7 @@ func morphObjectToType(v tftypes.Value, t tftypes.Type, p *tftypes.AttributePath
var mvals map[string]tftypes.Value = make(map[string]tftypes.Value, len(vals))
for k, v := range vals {
elp := p.WithElementKeyString(k)
nv, err := ValueToType(v, t.(tftypes.Map).AttributeType, elp)
nv, err := ValueToType(v, t.(tftypes.Map).ElementType, elp)
if err != nil {
return tftypes.Value{}, elp.NewErrorf("[%s] failed to morph object element into map element: %v", elp.String(), err)
}
Expand Down
12 changes: 6 additions & 6 deletions manifest/morph/morph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func TestMorphValueToType(t *testing.T) {
},
"map->object": {
In: sampleInType{
V: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
V: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"one": tftypes.NewValue(tftypes.String, "foo"),
"two": tftypes.NewValue(tftypes.String, "bar"),
"three": tftypes.NewValue(tftypes.String, "baz"),
Expand All @@ -256,14 +256,14 @@ func TestMorphValueToType(t *testing.T) {
},
"map->map": {
In: sampleInType{
V: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
V: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"one": tftypes.NewValue(tftypes.String, "foo"),
"two": tftypes.NewValue(tftypes.String, "bar"),
"three": tftypes.NewValue(tftypes.String, "baz"),
}),
T: tftypes.Map{AttributeType: tftypes.String},
T: tftypes.Map{ElementType: tftypes.String},
},
Out: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
Out: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"one": tftypes.NewValue(tftypes.String, "foo"),
"two": tftypes.NewValue(tftypes.String, "bar"),
"three": tftypes.NewValue(tftypes.String, "baz"),
Expand All @@ -280,9 +280,9 @@ func TestMorphValueToType(t *testing.T) {
"two": tftypes.NewValue(tftypes.String, "bar"),
"three": tftypes.NewValue(tftypes.String, "baz"),
}),
T: tftypes.Map{AttributeType: tftypes.String},
T: tftypes.Map{ElementType: tftypes.String},
},
Out: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
Out: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"one": tftypes.NewValue(tftypes.String, "foo"),
"two": tftypes.NewValue(tftypes.String, "bar"),
"three": tftypes.NewValue(tftypes.String, "baz"),
Expand Down
6 changes: 3 additions & 3 deletions manifest/morph/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func DeepUnknown(t tftypes.Type, v tftypes.Value, p *tftypes.AttributePath) (tft
}
for name, el := range vals {
np := p.WithElementKeyString(name)
nv, err := DeepUnknown(t.(tftypes.Map).AttributeType, el, np)
nv, err := DeepUnknown(t.(tftypes.Map).ElementType, el, np)
if err != nil {
return tftypes.Value{}, np.NewError(err)
}
Expand All @@ -74,7 +74,7 @@ func DeepUnknown(t tftypes.Type, v tftypes.Value, p *tftypes.AttributePath) (tft
return tftypes.Value{}, p.NewError(err)
}
for i, et := range atts {
np := p.WithElementKeyInt(int64(i))
np := p.WithElementKeyInt(i)
nv, err := DeepUnknown(et, vals[i], np)
if err != nil {
return tftypes.Value{}, np.NewError(err)
Expand All @@ -99,7 +99,7 @@ func DeepUnknown(t tftypes.Type, v tftypes.Value, p *tftypes.AttributePath) (tft
elt = t.(tftypes.Set).ElementType
}
for i, el := range vals {
np := p.WithElementKeyInt(int64(i))
np := p.WithElementKeyInt(i)
nv, err := DeepUnknown(elt, el, np)
if err != nil {
return tftypes.Value{}, np.NewError(err)
Expand Down
10 changes: 5 additions & 5 deletions manifest/openapi/foundry_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ type testSamples map[string]testSample

var objectMetaType = tftypes.Object{
AttributeTypes: map[string]tftypes.Type{
"annotations": tftypes.Map{AttributeType: tftypes.String},
"annotations": tftypes.Map{ElementType: tftypes.String},
"clusterName": tftypes.String,
"creationTimestamp": tftypes.String,
"deletionGracePeriodSeconds": tftypes.Number,
"deletionTimestamp": tftypes.String,
"finalizers": tftypes.List{ElementType: tftypes.String},
"generateName": tftypes.String,
"generation": tftypes.Number,
"labels": tftypes.Map{AttributeType: tftypes.String},
"labels": tftypes.Map{ElementType: tftypes.String},
"managedFields": tftypes.List{
ElementType: tftypes.Object{
AttributeTypes: map[string]tftypes.Type{
Expand Down Expand Up @@ -70,8 +70,8 @@ var samples = testSamples{
"kind": tftypes.String,
"metadata": objectMetaType,
"immutable": tftypes.Bool,
"data": tftypes.Map{AttributeType: tftypes.String},
"binaryData": tftypes.Map{AttributeType: tftypes.String},
"data": tftypes.Map{ElementType: tftypes.String},
"binaryData": tftypes.Map{ElementType: tftypes.String},
},
},
},
Expand Down Expand Up @@ -105,7 +105,7 @@ var samples = testSamples{
},
},
"publishNotReadyAddresses": tftypes.Bool,
"selector": tftypes.Map{AttributeType: tftypes.String},
"selector": tftypes.Map{ElementType: tftypes.String},
"sessionAffinity": tftypes.String,
"sessionAffinityConfig": tftypes.Object{AttributeTypes: map[string]tftypes.Type{
"clientIP": tftypes.Object{
Expand Down
2 changes: 1 addition & 1 deletion manifest/openapi/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func getTypeFromSchema(elem *openapi3.Schema, stackdepth uint64, typeCache *sync
if err != nil {
return nil, err
}
t = tftypes.Map{AttributeType: pt}
t = tftypes.Map{ElementType: pt}
if herr == nil {
typeCache.Store(h, t)
}
Expand Down
2 changes: 1 addition & 1 deletion manifest/payload/from_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func FromTFValue(in tftypes.Value, ap *tftypes.AttributePath) (interface{}, erro
return lv, nil
}
for k, le := range l {
nextAp := ap.WithElementKeyInt(int64(k))
nextAp := ap.WithElementKeyInt(k)
ne, err := FromTFValue(le, nextAp)
if err != nil {
return nil, nextAp.NewErrorf("[%s] cannot convert list element to Unstructured: %s", nextAp.String(), err)
Expand Down
2 changes: 1 addition & 1 deletion manifest/payload/from_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestFromTFValue(t *testing.T) {
Out: []interface{}{"test1", "test2"},
},
"map-of-strings": {
In: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
In: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"foo": tftypes.NewValue(tftypes.String, "test1"),
"bar": tftypes.NewValue(tftypes.String, "test2"),
}),
Expand Down
24 changes: 12 additions & 12 deletions manifest/payload/to_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func sliceToTFDynamicValue(in []interface{}, st tftypes.Type, at *tftypes.Attrib
il := make([]tftypes.Value, len(in), len(in))
oTypes := make([]tftypes.Type, len(in), len(in))
for k, v := range in {
eap := at.WithElementKeyInt(int64(k))
eap := at.WithElementKeyInt(k)
var iv tftypes.Value
iv, err := ToTFValue(v, tftypes.DynamicPseudoType, at.WithElementKeyInt(int64(k)))
iv, err := ToTFValue(v, tftypes.DynamicPseudoType, at.WithElementKeyInt(k))
if err != nil {
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert list element '%s' as DynamicPseudoType", eap, err)
}
Expand All @@ -121,8 +121,8 @@ func sliceToTFListValue(in []interface{}, st tftypes.Type, at *tftypes.Attribute
il := make([]tftypes.Value, 0, len(in))
var oType tftypes.Type = tftypes.Type(nil)
for k, v := range in {
eap := at.WithElementKeyInt(int64(k))
iv, err := ToTFValue(v, st.(tftypes.List).ElementType, at.WithElementKeyInt(int64(k)))
eap := at.WithElementKeyInt(k)
iv, err := ToTFValue(v, st.(tftypes.List).ElementType, at.WithElementKeyInt(k))
if err != nil {
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert list element value: %s", eap, err)
}
Expand Down Expand Up @@ -152,9 +152,9 @@ func sliceToTFTupleValue(in []interface{}, st tftypes.Type, at *tftypes.Attribut
}
}
for k, v := range in {
eap := at.WithElementKeyInt(int64(k))
eap := at.WithElementKeyInt(k)
et := ttypes[k]
iv, err := ToTFValue(v, et, at.WithElementKeyInt(int64(k)))
iv, err := ToTFValue(v, et, at.WithElementKeyInt(k))
if err != nil {
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert list element [%d] to '%s': %s", eap.String(), k, et.String(), err)
}
Expand All @@ -168,8 +168,8 @@ func sliceToTFSetValue(in []interface{}, st tftypes.Type, at *tftypes.AttributeP
il := make([]tftypes.Value, len(in), len(in))
var oType tftypes.Type = tftypes.Type(nil)
for k, v := range in {
eap := at.WithElementKeyInt(int64(k))
iv, err := ToTFValue(v, st.(tftypes.Set).ElementType, at.WithElementKeyInt(int64(k)))
eap := at.WithElementKeyInt(k)
iv, err := ToTFValue(v, st.(tftypes.Set).ElementType, at.WithElementKeyInt(k))
if err != nil {
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert list element [%d] to '%s': %s", eap, k, st.(tftypes.Set).ElementType.String(), err)
}
Expand All @@ -193,9 +193,9 @@ func mapToTFMapValue(in map[string]interface{}, st tftypes.Type, at *tftypes.Att
var oType tftypes.Type
for k, v := range in {
eap := at.WithAttributeName(k)
mv, err := ToTFValue(v, st.(tftypes.Map).AttributeType, eap)
mv, err := ToTFValue(v, st.(tftypes.Map).ElementType, eap)
if err != nil {
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert map element '%s' to '%s': err", eap, st.(tftypes.Map).AttributeType.String(), err)
return tftypes.Value{}, eap.NewErrorf("[%s] cannot convert map element '%s' to '%s': err", eap, st.(tftypes.Map).ElementType.String(), err)
}
im[k] = mv
if oType == tftypes.Type(nil) {
Expand All @@ -206,9 +206,9 @@ func mapToTFMapValue(in map[string]interface{}, st tftypes.Type, at *tftypes.Att
}
}
if oType == tftypes.Type(nil) {
oType = st.(tftypes.Map).AttributeType
oType = st.(tftypes.Map).ElementType
}
return tftypes.NewValue(tftypes.Map{AttributeType: oType}, im), nil
return tftypes.NewValue(tftypes.Map{ElementType: oType}, im), nil
}

func mapToTFObjectValue(in map[string]interface{}, st tftypes.Type, at *tftypes.AttributePath) (tftypes.Value, error) {
Expand Down
8 changes: 4 additions & 4 deletions manifest/payload/to_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ func TestToTFValue(t *testing.T) {
"foo": "18",
"bar": "crawl",
},
t: tftypes.Map{AttributeType: tftypes.String},
t: tftypes.Map{ElementType: tftypes.String},
},
Out: tftypes.NewValue(tftypes.Map{AttributeType: tftypes.String}, map[string]tftypes.Value{
Out: tftypes.NewValue(tftypes.Map{ElementType: tftypes.String}, map[string]tftypes.Value{
"foo": tftypes.NewValue(tftypes.String, "18"),
"bar": tftypes.NewValue(tftypes.String, "crawl"),
}),
Expand Down Expand Up @@ -478,10 +478,10 @@ func TestMapToTFMapValue(t *testing.T) {
"count": "42",
"image": "nginx/latest",
},
t: tftypes.Map{AttributeType: tftypes.String},
t: tftypes.Map{ElementType: tftypes.String},
},
Out: tftypes.NewValue(
tftypes.Map{AttributeType: tftypes.String},
tftypes.Map{ElementType: tftypes.String},
map[string]tftypes.Value{
"count": tftypes.NewValue(tftypes.String, "42"),
"image": tftypes.NewValue(tftypes.String, "nginx/latest"),
Expand Down
2 changes: 1 addition & 1 deletion manifest/provider/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform-exec/tfexec"
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
tf5server "github.com/hashicorp/terraform-plugin-go/tfprotov5/server"
tf5server "github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server"
)

var providerName = "registry.terraform.io/hashicorp/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion manifest/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func GetProviderResourceSchema() map[string]*tfprotov5.Schema {
waitForType := tftypes.Object{
AttributeTypes: map[string]tftypes.Type{
"fields": tftypes.Map{
AttributeType: tftypes.String,
ElementType: tftypes.String,
},
},
}
Expand Down
Loading

0 comments on commit 5cfbb54

Please sign in to comment.