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