mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-18 20:52:58 -06:00
a6db207b87
Provisioners are always run via a single instance, and their configuration and references are taken care of via their parent resource, so there is no need to maintain the provisioner graph nodes. The only action that will still need to be completed is calling the Close method for external plugins. This was not consistently done with the current handling of provisioners anyway, and we can now add that to a single point with the new CloseProvisioners context method.
9 lines
265 B
Go
9 lines
265 B
Go
package terraform
|
|
|
|
// GraphNodeProvisionerConsumer is an interface that nodes that require
|
|
// a provisioner must implement. ProvisionedBy must return the names of the
|
|
// provisioners to use.
|
|
type GraphNodeProvisionerConsumer interface {
|
|
ProvisionedBy() []string
|
|
}
|