Remove host command sniffing from CanSupport(..)

This commit is contained in:
childsb
2016-02-23 17:13:14 -06:00
parent c1bd13ec4b
commit 7fed6f9f47
3 changed files with 3 additions and 22 deletions

View File

@@ -58,13 +58,8 @@ func (plugin *rbdPlugin) CanSupport(spec *volume.Spec) bool {
if (spec.Volume != nil && spec.Volume.RBD == nil) || (spec.PersistentVolume != nil && spec.PersistentVolume.Spec.RBD == nil) {
return false
}
// see if rbd is there
_, err := plugin.execCommand("rbd", []string{"-h"})
if err == nil {
return true
}
return false
return true
}
func (plugin *rbdPlugin) GetAccessModes() []api.PersistentVolumeAccessMode {