don't panic

This commit is contained in:
James Bardin 2017-11-10 11:01:14 -05:00
parent 8619f566bb
commit b357c02ad1
1 changed files with 2 additions and 1 deletions

View File

@ -530,7 +530,8 @@ func (t *ProviderConfigTransformer) addProxyProvider(g *Graph, m *module.Tree, p
parentProvider := t.providers[fullParentName] parentProvider := t.providers[fullParentName]
if parentProvider == nil { if parentProvider == nil {
panic(fmt.Sprintf("missing provider %s in module %s", parentProviderName, m.Name())) log.Printf("[ERROR] missing provider %s in module %s", parentProviderName, m.Name())
return false
} }
v := &graphNodeProxyProvider{ v := &graphNodeProxyProvider{