Skip to content

Commit

Permalink
non-tuple cty.Types do not have Length
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Nov 2, 2020
1 parent 413b6c7 commit 6dcd682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/convert/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func tftypeFromCtyType(in cty.Type) (tftypes.Type, error) {
AttributeType: elemType,
}, nil
case in.IsObjectType():
attrTypes := make(map[string]tftypes.Type, in.Length())
attrTypes := make(map[string]tftypes.Type)
for key, typ := range in.AttributeTypes() {
attrType, err := tftypeFromCtyType(typ)
if err != nil {
Expand Down

0 comments on commit 6dcd682

Please sign in to comment.