mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix gofmt verify
This commit is contained in:
parent
1070eb7428
commit
5183513661
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user