From c6f049ffc6bbba1024bfb748e2e4f3175d4a8ea3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 19 Jul 2014 16:07:09 -0700 Subject: [PATCH] terraform: add panic in impossible case --- terraform/graph.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/graph.go b/terraform/graph.go index 3232aaa109..4b993d5a3a 100644 --- a/terraform/graph.go +++ b/terraform/graph.go @@ -478,6 +478,9 @@ func graphAddProviderConfigs(g *depgraph.Graph, c *config.Config) { break } } + if pc == nil { + panic("pc not found") + } pcNoun = &depgraph.Noun{ Name: fmt.Sprintf("provider.%s", pcName),