terraform: add edge for missing providers

This commit is contained in:
Mitchell Hashimoto 2015-05-01 18:39:24 -07:00
parent 23b6acc29d
commit bbb065d1ad
2 changed files with 10 additions and 1 deletions

View File

@ -2,4 +2,3 @@ module "child" {
source = "./child"
instance_count = "2"
}

View File

@ -218,6 +218,11 @@ func (n *graphNodeMissingProvider) EvalTree() EvalNode {
return ProviderEvalTree(n.ProviderNameValue, nil)
}
// GraphNodeDependable impl.
func (n *graphNodeMissingProvider) DependableName() []string {
return []string{n.Name()}
}
func (n *graphNodeMissingProvider) ProviderName() string {
return n.ProviderNameValue
}
@ -280,6 +285,11 @@ func (n *graphNodeMissingProviderFlat) ProviderName() string {
n.graphNodeMissingProvider.ProviderName())
}
// GraphNodeDependable impl.
func (n *graphNodeMissingProviderFlat) DependableName() []string {
return []string{n.Name()}
}
func (n *graphNodeMissingProviderFlat) DependentOn() []string {
var result []string