Skip to content

Commit 47acdc6

Browse files
Fixed #657
1 parent 1341abb commit 47acdc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

terraform/hcl/properties.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func (me Properties) EncodeSlice(key string, v any) error {
5656
} else {
5757
return err
5858
}
59+
} else if str, ok := elem.(string); ok {
60+
entries = append(entries, str)
5961
} else {
6062
return fmt.Errorf("slice entries of type %T are expected to implement hcl.Marshaler but don't", elem)
6163
}

0 commit comments

Comments
 (0)