mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-16 01:00:22 -04:00
terraform: add panic in impossible case
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user