lock was missing in the call to GetVariableValue
This commit is contained in:
parent
82ad9fd635
commit
695a5fe27d
|
@ -330,6 +330,9 @@ func (ctx *BuiltinEvalContext) SetModuleCallArguments(n addrs.ModuleCallInstance
|
|||
}
|
||||
|
||||
func (ctx *BuiltinEvalContext) GetVariableValue(addr addrs.AbsInputVariableInstance) cty.Value {
|
||||
ctx.VariableValuesLock.Lock()
|
||||
defer ctx.VariableValuesLock.Unlock()
|
||||
|
||||
modKey := addr.Module.String()
|
||||
modVars := ctx.VariableValues[modKey]
|
||||
val, ok := modVars[addr.Variable.Name]
|
||||
|
|
Loading…
Reference in New Issue