terraform: add panic in impossible case

This commit is contained in:
Mitchell Hashimoto 2014-07-19 16:07:09 -07:00
parent 7bd7e4218f
commit c6f049ffc6
1 changed files with 3 additions and 0 deletions

View File

@ -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),