terraform: providers should input/config on import

This commit is contained in:
Mitchell Hashimoto 2016-05-04 11:48:59 -07:00
parent eb9cb46256
commit 8f201b14f2
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
// Input stuff
seq = append(seq, &EvalOpFilter{
Ops: []walkOperation{walkInput},
Ops: []walkOperation{walkInput, walkImport},
Node: &EvalSequence{
Nodes: []EvalNode{
&EvalGetProvider{
@ -71,7 +71,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
// Apply stuff
seq = append(seq, &EvalOpFilter{
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy},
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy, walkImport},
Node: &EvalSequence{
Nodes: []EvalNode{
&EvalGetProvider{
@ -98,7 +98,7 @@ func ProviderEvalTree(n string, config *config.RawConfig) EvalNode {
// We configure on everything but validate, since validate may
// not have access to all the variables.
seq = append(seq, &EvalOpFilter{
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy},
Ops: []walkOperation{walkRefresh, walkPlan, walkApply, walkDestroy, walkImport},
Node: &EvalSequence{
Nodes: []EvalNode{
&EvalConfigProvider{