add comment about when we call ConfigureProvider
This commit is contained in:
parent
03f71c2f06
commit
a036109bc1
|
@ -38,6 +38,9 @@ func (n *NodeApplyableProvider) Execute(ctx EvalContext, op walkOperation) (diag
|
|||
log.Printf("[TRACE] NodeApplyableProvider: validating configuration for %s", n.Addr)
|
||||
return diags.Append(n.ValidateProvider(ctx, provider))
|
||||
case walkPlan, walkApply, walkDestroy:
|
||||
// walkPlanDestroy is purposely skipped here, since the config is not
|
||||
// evaluated, and the provider is not needed to create delete actions
|
||||
// for all instances.
|
||||
log.Printf("[TRACE] NodeApplyableProvider: configuring %s", n.Addr)
|
||||
return diags.Append(n.ConfigureProvider(ctx, provider, false))
|
||||
case walkImport:
|
||||
|
|
Loading…
Reference in New Issue