From 518351366128e7f13f77013ec9105b71ba061481 Mon Sep 17 00:00:00 2001 From: Scott Nice Date: Thu, 9 Dec 2021 09:18:22 -0500 Subject: [PATCH] Fix gofmt verify --- pkg/volume/plugins.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/volume/plugins.go b/pkg/volume/plugins.go index 43783a7e86f..3626dc6c905 100644 --- a/pkg/volume/plugins.go +++ b/pkg/volume/plugins.go @@ -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