From bbb065d1ad2d6eab55ade66379a855d48f7d35df Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 1 May 2015 18:39:24 -0700 Subject: [PATCH] terraform: add edge for missing providers --- .../test-fixtures/plan-module-destroy-multivar/main.tf | 1 - terraform/transform_provider.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/terraform/test-fixtures/plan-module-destroy-multivar/main.tf b/terraform/test-fixtures/plan-module-destroy-multivar/main.tf index ae334b5a5..2f965b68c 100644 --- a/terraform/test-fixtures/plan-module-destroy-multivar/main.tf +++ b/terraform/test-fixtures/plan-module-destroy-multivar/main.tf @@ -2,4 +2,3 @@ module "child" { source = "./child" instance_count = "2" } - diff --git a/terraform/transform_provider.go b/terraform/transform_provider.go index 2e111ee82..b9ac53ccb 100644 --- a/terraform/transform_provider.go +++ b/terraform/transform_provider.go @@ -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