From 9fc641377590814efde67651e9e08ed8350d4d22 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 8 Jul 2014 10:52:59 -0700 Subject: [PATCH] terraform: Ignore orphans in provisioner setup --- terraform/graph.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/graph.go b/terraform/graph.go index 327d01c3ee..d1fdf43c68 100644 --- a/terraform/graph.go +++ b/terraform/graph.go @@ -736,6 +736,11 @@ func graphMapResourceProvisioners(g *depgraph.Graph, continue } + // Ignore orphan nodes with no provisioners + if rn.Config == nil { + continue + } + // Check each provisioner for _, p := range rn.Config.Provisioners { // Check for a cached provisioner