Merge pull request #21758 from childsb/1308588

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2016-02-26 22:33:20 -08:00
commit 18130824b2
1 changed files with 1 additions and 8 deletions

View File

@ -61,15 +61,8 @@ func (plugin *glusterfsPlugin) CanSupport(spec *volume.Spec) bool {
(spec.Volume != nil && spec.Volume.Glusterfs == nil) {
return false
}
// see if glusterfs mount helper is there
// this needs a ls because the plugin container may be on a filesystem
// that is not visible to the volume plugin process.
_, err := plugin.execCommand("ls", []string{"/sbin/mount.glusterfs"})
if err == nil {
return true
}
return false
return true
}