Skip to content

Commit

Permalink
cluster/executor/ssh: golang error message use lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
9547 committed Sep 3, 2020
1 parent 280265d commit 451e632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/executor/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (e *NativeSSHExecutor) Execute(cmd string, sudo bool, timeout ...time.Durat

if val := os.Getenv(localdata.EnvNameSSHPath); val != "" {
if isExec := utils.IsExecBinary(val); !isExec {
return nil, nil, fmt.Errorf("The specified SSH in the environment variable `%s` does not exist or is not executable", localdata.EnvNameSSHPath)
return nil, nil, fmt.Errorf("specified SSH in the environment variable `%s` does not exist or is not executable", localdata.EnvNameSSHPath)
}
ssh = val
}
Expand Down Expand Up @@ -362,7 +362,7 @@ func (e *NativeSSHExecutor) Transfer(src string, dst string, download bool) erro

if val := os.Getenv(localdata.EnvNameSCPPath); val != "" {
if isExec := utils.IsExecBinary(val); !isExec {
return fmt.Errorf("The specified SCP in the environment variable `%s` does not exist or is not executable", localdata.EnvNameSCPPath)
return fmt.Errorf("specified SCP in the environment variable `%s` does not exist or is not executable", localdata.EnvNameSCPPath)
}
scp = val
}
Expand Down

0 comments on commit 451e632

Please sign in to comment.