From ccc9b1d76786dcde9218364cd5cb922bf20289a0 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 8 Nov 2017 22:10:43 -0500 Subject: [PATCH] replacing orphaned with removed --- terraform/state.go | 4 ++-- terraform/transform_orphan_output.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/state.go b/terraform/state.go index 8773745fd..5bc2f8a04 100644 --- a/terraform/state.go +++ b/terraform/state.go @@ -1113,9 +1113,9 @@ func (m *ModuleState) Orphans(c *config.Config) []string { return result } -// OrphanOutputs returns a list of outputs that are in the State but aren't +// RemovedOutputs returns a list of outputs that are in the State but aren't // present in the configuration itself. -func (m *ModuleState) OrphanOutputs(c *config.Config) []string { +func (m *ModuleState) RemovedOutputs(c *config.Config) []string { m.Lock() defer m.Unlock() diff --git a/terraform/transform_orphan_output.go b/terraform/transform_orphan_output.go index f27472dc2..aea2bd0ed 100644 --- a/terraform/transform_orphan_output.go +++ b/terraform/transform_orphan_output.go @@ -44,7 +44,7 @@ func (t *OrphanOutputTransformer) transform(g *Graph, ms *ModuleState) error { } // add all the orphaned outputs to the graph - for _, n := range ms.OrphanOutputs(c) { + for _, n := range ms.RemovedOutputs(c) { g.Add(&NodeOutputOrphan{OutputName: n, PathValue: path}) }