terraform: add panic in impossible case
This commit is contained in:
parent
7bd7e4218f
commit
c6f049ffc6
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue