From 872e8a15f09108555ef3b07235cacdfd77c3f747 Mon Sep 17 00:00:00 2001 From: Kush Date: Mon, 2 Aug 2021 16:48:10 +0530 Subject: [PATCH] fix: plugin discovery based on plugin type --- models/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/plugin.go b/models/plugin.go index c21c731488..a0288adca7 100644 --- a/models/plugin.go +++ b/models/plugin.go @@ -401,7 +401,7 @@ func (s *registeredPlugins) GetCommandLines() []CommandLineMod { func (s *registeredPlugins) GetTasks() []*Plugin { var list []*Plugin for _, unit := range s.data { - if unit.DependencyMod != nil { + if unit.Info().PluginType == PluginTypeTask { list = append(list, unit) } }