Fix gofmt verify

This commit is contained in:
Scott Nice 2021-12-09 09:18:22 -05:00
parent 1070eb7428
commit 5183513661

View File

@ -747,6 +747,10 @@ func (pm *VolumePluginMgr) logDeprecation(plugin string) {
func (pm *VolumePluginMgr) refreshProbedPlugins() {
events, err := pm.prober.Probe()
if err != nil {
klog.ErrorS(err, "Error dynamically probing plugins")
}
// because the probe function can return a list of valid plugins
// even when an error is present we still must add the plugins
// or they will be skipped because each event only fires once
@ -766,11 +770,6 @@ func (pm *VolumePluginMgr) refreshProbedPlugins() {
"pluginName", event.Plugin.GetPluginName())
}
}
if err != nil {
klog.ErrorS(err, "Error dynamically probing plugins")
return
}
}
// ListVolumePluginWithLimits returns plugins that have volume limits on nodes