From 0e3c88073b32bfd8acbc0e68eb7e2f36be21045a Mon Sep 17 00:00:00 2001 From: Johannes Koch <53434855+johakoch@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:53:54 +0100 Subject: [PATCH] functions: lookup third argument is not optional --- cty/function/stdlib/collection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cty/function/stdlib/collection.go b/cty/function/stdlib/collection.go index 1816bb9c..25df19b0 100644 --- a/cty/function/stdlib/collection.go +++ b/cty/function/stdlib/collection.go @@ -1506,8 +1506,8 @@ func Keys(inputMap cty.Value) (cty.Value, error) { } // Lookup performs a dynamic lookup into a map. -// There are two required arguments, map and key, plus an optional default, -// which is a value to return if no key is found in map. +// There are three required arguments, inputMap and key, plus a defaultValue, +// which is a value to return if the given key is not found in the inputMap. func Lookup(inputMap, key, defaultValue cty.Value) (cty.Value, error) { return LookupFunc.Call([]cty.Value{inputMap, key, defaultValue}) }