error config attachable plugin

This commit is contained in:
fredkan 2019-08-15 20:41:32 +08:00
parent 87243f49a4
commit 6524b83d53

View File

@ -398,7 +398,7 @@ func (asw *actualStateOfWorld) addVolume(
}
pluginIsAttachable := false
if thePlugin, err := asw.volumePluginMgr.FindAttachablePluginBySpec(volumeSpec); err != nil && thePlugin != nil {
if thePlugin, err := asw.volumePluginMgr.FindAttachablePluginBySpec(volumeSpec); err == nil && thePlugin != nil {
pluginIsAttachable = true
}