terraform: the import RootTransformer should run last

This was causing multiple root issues
This commit is contained in:
Mitchell Hashimoto 2016-11-02 10:39:04 -07:00
parent 5107c33119
commit 2be756642f
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 3 additions and 3 deletions

View File

@ -49,12 +49,12 @@ func (b *ImportGraphBuilder) Steps() []GraphTransformer {
&DisableProviderTransformerOld{}, &DisableProviderTransformerOld{},
&PruneProviderTransformer{}, &PruneProviderTransformer{},
// Single root
&RootTransformer{},
// Insert nodes to close opened plugin connections // Insert nodes to close opened plugin connections
&CloseProviderTransformer{}, &CloseProviderTransformer{},
// Single root
&RootTransformer{},
// Optimize // Optimize
&TransitiveReductionTransformer{}, &TransitiveReductionTransformer{},
} }