Skip to content

Commit

Permalink
Merge pull request #299 from winrouter/main
Browse files Browse the repository at this point in the history
Fix log print error
  • Loading branch information
ks-ci-bot authored Sep 20, 2023
2 parents 3d71165 + e8af512 commit 5985af2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/plugins/pluginslist.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ func NotReadyPluginsList(pluginsResults []kubeeyev1alpha1.PluginsResult, plugins
pluginsMap[result.Name] = result.Ready
}

for _, plugins := range pluginsList.Items {
pluginsname := plugins.Name
if !pluginsMap[pluginsname] && plugins.Status.State == conf.PluginInstalled {
notReadyPluginsList = append(notReadyPluginsList, pluginsname)
for _, plugin := range pluginsList.Items {
pluginName := plugin.Name
if !pluginsMap[pluginName] && plugin.Status.State == conf.PluginInstalled {
notReadyPluginsList = append(notReadyPluginsList, pluginName)
}
}
return notReadyPluginsList
Expand Down
1 change: 1 addition & 0 deletions pkg/plugins/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func TriggerPluginsAudit(pluginList []string) {
err, _ := TriggerAudit(pluginName)
if err != nil {
klog.Errorf("trigger plugin %s audit failed", pluginName, err)
continue
}
klog.Infof("trigger plugin %s audit successful", pluginName)
} else {
Expand Down

0 comments on commit 5985af2

Please sign in to comment.