From 889e42443a3b80ca31c69185912210c141912de3 Mon Sep 17 00:00:00 2001 From: Donald Guy Date: Mon, 14 Dec 2020 04:57:08 -0500 Subject: [PATCH] Fix 2nd binding of string reverse for list reverse (#10380) --- hcl2template/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl2template/functions.go b/hcl2template/functions.go index 058a3f8da..5432ed89f 100644 --- a/hcl2template/functions.go +++ b/hcl2template/functions.go @@ -80,7 +80,7 @@ func Functions(basedir string) map[string]function.Function { "pathexpand": filesystem.PathExpandFunc, "pow": stdlib.PowFunc, "range": stdlib.RangeFunc, - "reverse": stdlib.ReverseFunc, + "reverse": stdlib.ReverseListFunc, "replace": stdlib.ReplaceFunc, "regex_replace": stdlib.RegexReplaceFunc, "rsadecrypt": crypto.RsaDecryptFunc,