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) } }