diff --git a/terraform/eval_context_builtin.go b/terraform/eval_context_builtin.go index 61f35b732..a6e6f849a 100644 --- a/terraform/eval_context_builtin.go +++ b/terraform/eval_context_builtin.go @@ -105,13 +105,14 @@ func (ctx *BuiltinEvalContext) InitProvider(typeName string, addr addrs.Provider ctx.ProviderLock.Lock() defer ctx.ProviderLock.Unlock() - key := addr.String() + key := absAddr.String() p, err := ctx.Components.ResourceProvider(typeName, key) if err != nil { return nil, err } + log.Printf("[TRACE] BuiltinEvalContext: Initialized %q provider for %s", typeName, absAddr) ctx.ProviderCache[key] = p // Also fetch and cache the provider's schema.