Return cty.DynamicPseudoType instead
This commit is contained in:
parent
4856d81300
commit
b41cda7d7a
|
@ -516,7 +516,7 @@ var LookupFunc = function.New(&function.Spec{
|
|||
switch {
|
||||
case ty.IsObjectType():
|
||||
if !args[1].IsKnown() {
|
||||
return args[2].Type(), nil
|
||||
return cty.DynamicPseudoType, nil
|
||||
}
|
||||
|
||||
key := args[1].AsString()
|
||||
|
|
Loading…
Reference in New Issue