From e3ea3150aea21d55065f741f90a58e20bd38b9f9 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 9 Nov 2017 10:52:46 -0500 Subject: [PATCH] make NodeOutputOrphan referenceable The removed output need to be referencable so if its parent module is also being remove, the removal happens in the correct order. --- terraform/node_output_orphan.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/node_output_orphan.go b/terraform/node_output_orphan.go index 636a15df1..0fd1554a9 100644 --- a/terraform/node_output_orphan.go +++ b/terraform/node_output_orphan.go @@ -19,6 +19,11 @@ func (n *NodeOutputOrphan) Name() string { return result } +// GraphNodeReferenceable +func (n *NodeOutputOrphan) ReferenceableName() []string { + return []string{"output." + n.OutputName} +} + // GraphNodeSubPath func (n *NodeOutputOrphan) Path() []string { return n.PathValue