mirror of https://github.com/hashicorp/terraform
Provider input is now longer handled with a graph walk, so the code related to the input graph and walk are no longer needed. For now the Input method is retained on the ResourceProvider interface, but it will never be called. Subsequent work to revamp the provider API will remove this method.f-hcl2-planstate
parent
6d4b3d79d1
commit
9ae44977b7
@ -1,27 +0,0 @@
|
||||
package terraform
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform/dag"
|
||||
)
|
||||
|
||||
// InputGraphBuilder creates the graph for the input operation.
|
||||
//
|
||||
// Unlike other graph builders, this is a function since it currently modifies
|
||||
// and is based on the PlanGraphBuilder. The PlanGraphBuilder passed in will be
|
||||
// modified and should not be used for any other operations.
|
||||
func InputGraphBuilder(p *PlanGraphBuilder) GraphBuilder {
|
||||
// We're going to customize the concrete functions
|
||||
p.CustomConcrete = true
|
||||
|
||||
// Set the provider to the normal provider. This will ask for input.
|
||||
p.ConcreteProvider = func(a *NodeAbstractProvider) dag.Vertex {
|
||||
return &NodeApplyableProvider{
|
||||
NodeAbstractProvider: a,
|
||||
}
|
||||
}
|
||||
|
||||
// We purposely don't set any more concrete fields since the remainder
|
||||
// should be no-ops.
|
||||
|
||||
return p
|
||||
}
|
||||
Loading…
Reference in new issue