Skip to content

Commit

Permalink
fix TF list conversions
Browse files Browse the repository at this point in the history
Signed-off-by: Erhan Cagirici <[email protected]>
  • Loading branch information
erhancagirici committed Jan 16, 2024
1 parent 3f37752 commit 93999ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/external_terraform_plugin_framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,10 @@ func tfValueToMap(input tftypes.Value) (any, error) { //nolint:gocyclo
return dest, nil
case valType.Is(tftypes.Set{}), valType.Is(tftypes.List{}), valType.Is(tftypes.Tuple{}):
destInterim := make([]tftypes.Value, 0)
dest := make([]any, 0)
if err := input.As(&destInterim); err != nil {
return nil, err
}
dest := make([]any, len(destInterim))
for i, v := range destInterim {
if res, err := tfValueToMap(v); err != nil {
return nil, err
Expand Down

0 comments on commit 93999ba

Please sign in to comment.