From d85ead29c59694891144c82d509df61da87d1edb Mon Sep 17 00:00:00 2001 From: Brad Sickles Date: Wed, 11 Nov 2020 08:38:04 -0500 Subject: [PATCH] Handling '[]' --- convert/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/convert.go b/convert/convert.go index acdd57f..5d04d86 100644 --- a/convert/convert.go +++ b/convert/convert.go @@ -146,7 +146,7 @@ func (c *converter) convertExpression(expr hclsyntax.Expression) (interface{}, e case *hclsyntax.TemplateWrapExpr: return c.convertExpression(value.Wrapped) case *hclsyntax.TupleConsExpr: - var list []interface{} + list := make([]interface{}, 0) for _, ex := range value.Exprs { elem, err := c.convertExpression(ex) if err != nil {