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