mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
Block a user