Merge pull request #81456 from fredkan/bugfix/error-config-attachable-plugin

Bugfix/error config attachable plugin
This commit is contained in:
Kubernetes Prow Robot 2019-08-16 06:44:44 -07:00 committed by GitHub
commit 9b54021c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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