terraform: fix disable provider tests

This commit is contained in:
Mitchell Hashimoto 2015-04-09 08:51:38 -07:00
parent bcff7e070c
commit eda2e0fdfc
2 changed files with 6 additions and 0 deletions

View File

@ -172,6 +172,10 @@ func (n *graphNodeDisabledProvider) EvalTree() EvalNode {
}
}
func (n *graphNodeDisabledProvider) Name() string {
return fmt.Sprintf("%s (disabled)", dag.VertexName(n.GraphNodeProvider))
}
type graphNodeMissingProvider struct {
ProviderNameValue string
}

View File

@ -217,6 +217,8 @@ provider.foo
const testTransformDisableProviderBasicStr = `
module.child
provider.aws (disabled)
provider.aws (disabled)
`
const testTransformDisableProviderKeepStr = `