terraform: providers should input/config on import
This commit is contained in:
parent
eb9cb46256
commit
8f201b14f2
|
@ -15,7 +15,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
|
||||||
|
|
||||||
// Input stuff
|
// Input stuff
|
||||||
seq = append(seq, &EvalOpFilter{
|
seq = append(seq, &EvalOpFilter{
|
||||||
Ops: []walkOperation{walkInput},
|
Ops: []walkOperation{walkInput, walkImport},
|
||||||
Node: &EvalSequence{
|
Node: &EvalSequence{
|
||||||
Nodes: []EvalNode{
|
Nodes: []EvalNode{
|
||||||
&EvalGetProvider{
|
&EvalGetProvider{
|
||||||
|
@ -71,7 +71,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
|
||||||
|
|
||||||
// Apply stuff
|
// Apply stuff
|
||||||
seq = append(seq, &EvalOpFilter{
|
seq = append(seq, &EvalOpFilter{
|
||||||
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy},
|
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy, walkImport},
|
||||||
Node: &EvalSequence{
|
Node: &EvalSequence{
|
||||||
Nodes: []EvalNode{
|
Nodes: []EvalNode{
|
||||||
&EvalGetProvider{
|
&EvalGetProvider{
|
||||||
|
@ -98,7 +98,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
|
||||||
// We configure on everything but validate, since validate may
|
// We configure on everything but validate, since validate may
|
||||||
// not have access to all the variables.
|
// not have access to all the variables.
|
||||||
seq = append(seq, &EvalOpFilter{
|
seq = append(seq, &EvalOpFilter{
|
||||||
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy},
|
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy, walkImport},
|
||||||
Node: &EvalSequence{
|
Node: &EvalSequence{
|
||||||
Nodes: []EvalNode{
|
Nodes: []EvalNode{
|
||||||
&EvalConfigProvider{
|
&EvalConfigProvider{
|
||||||
|
|
Loading…
Reference in New Issue