diff --git a/terraform/eval_context.go b/terraform/eval_context.go index 7421d69cb..49cac746a 100644 --- a/terraform/eval_context.go +++ b/terraform/eval_context.go @@ -77,8 +77,7 @@ type EvalContext interface { ProviderInput(addrs.AbsProviderConfig) map[string]cty.Value SetProviderInput(addrs.AbsProviderConfig, map[string]cty.Value) - // Provisioner gets the provisioner instance with the given name (already - // initialized) or returns nil if the provisioner isn't initialized. + // Provisioner gets the provisioner instance with the given name. Provisioner(string) (provisioners.Interface, error) // ProvisionerSchema retrieves the main configuration schema for a diff --git a/terraform/node_module_expand.go b/terraform/node_module_expand.go index 92064f6e4..07ff4545c 100644 --- a/terraform/node_module_expand.go +++ b/terraform/node_module_expand.go @@ -140,9 +140,9 @@ func (n *nodeExpandModule) Execute(ctx EvalContext, op walkOperation) (diags tfd // wait on this node. // Besides providing a root node for dependency ordering, nodeCloseModule also // cleans up state after all the module nodes have been evaluated, removing -// empty resources and modules from the state, and closes a remaining -// provisioner plugins which do not have a lifecycle controlled controlled by -// individual graph nodes. +// empty resources and modules from the state. +// The root module instance also closes any remaining provisioner plugins which +// do not have a lifecycle controlled by individual graph nodes. type nodeCloseModule struct { Addr addrs.Module }