fix error set csiplugin attachable

This commit is contained in:
fredkan 2019-08-15 14:19:51 +08:00
parent 661e4d5b38
commit 87243f49a4

View File

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