ssh setenv fail
This commit is contained in:
2
ssh.go
2
ssh.go
@@ -138,7 +138,7 @@ func (s *Ssh) ExecPipe(cmd string) error {
|
||||
s.session = session
|
||||
|
||||
if err = s.session.Setenv("TZ", cfg.Timezone); err != nil {
|
||||
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Setenv", "error": err}).Errorf("")
|
||||
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Setenv", "attr": cfg.Timezone, "error": err}).Errorf("")
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user