fix binary check for glusterfs.go
This commit is contained in:
		@@ -238,7 +238,7 @@ func (b *glusterfsMounter) CanMount() error {
 | 
				
			|||||||
	exe := b.plugin.host.GetExec(b.plugin.GetPluginName())
 | 
						exe := b.plugin.host.GetExec(b.plugin.GetPluginName())
 | 
				
			||||||
	switch runtime.GOOS {
 | 
						switch runtime.GOOS {
 | 
				
			||||||
	case "linux":
 | 
						case "linux":
 | 
				
			||||||
		if _, err := exe.Run("/bin/ls", gciLinuxGlusterMountBinaryPath); err != nil {
 | 
							if _, err := exe.Run("test", "-x", gciLinuxGlusterMountBinaryPath); err != nil {
 | 
				
			||||||
			return fmt.Errorf("Required binary %s is missing", gciLinuxGlusterMountBinaryPath)
 | 
								return fmt.Errorf("Required binary %s is missing", gciLinuxGlusterMountBinaryPath)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user