From 0dbecc54c0f96e7f18629deda8d09cfc08f16fde Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Wed, 6 Jun 2018 10:45:28 -0700 Subject: [PATCH] functions: ValuesFunc - cleanup return type --- lang/funcs/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/funcs/collection.go b/lang/funcs/collection.go index 3ad0d22e31..1f558f6272 100644 --- a/lang/funcs/collection.go +++ b/lang/funcs/collection.go @@ -856,7 +856,7 @@ var ValuesFunc = function.New(&function.Spec{ } if len(values) == 0 { - return cty.ListValEmpty(cty.DynamicPseudoType), nil + return cty.ListValEmpty(retType), nil } return cty.ListVal(values), nil