Update backwards compat fix from 5913

This commit is contained in:
Jeff Mitchell
2018-12-12 15:36:28 -05:00
parent dbd195f895
commit b701df4757
4 changed files with 12 additions and 1 deletions

View File

@@ -353,6 +353,9 @@ func (p *Predict) plugins(pluginTypes ...consts.PluginType) []string {
if err != nil {
return nil
}
if result == nil {
return nil
}
for _, names := range result.PluginsByType {
for _, name := range names {
if _, ok := pluginsAdded[name]; !ok {