Skip to content

Commit

Permalink
fix object type
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed May 27, 2021
1 parent 774b6ca commit 0c41edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (l ObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (a
Null: true,
}, nil
}
var attributes map[string]attr.Value
attributes := map[string]attr.Value{}

val := map[string]tftypes.Value{}
err := in.As(&val)
Expand All @@ -58,7 +58,7 @@ func (l ObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (a
attributes[k] = a
}

var attributeTypes map[string]tftypes.Type
attributeTypes := map[string]tftypes.Type{}
for k, v := range l.AttributeTypes {
attributeTypes[k] = v.TerraformType(ctx)
}
Expand Down

0 comments on commit 0c41edf

Please sign in to comment.