mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-09-13 20:00:10 +08:00
Fix mismatched type error (int and time.Duration)
This commit is contained in:
parent
7ac526845d
commit
867e934a1a
@ -91,7 +91,7 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) {
|
||||
p.log(host, "======END======")
|
||||
}
|
||||
|
||||
stdoutChan, stderrChan, doneChan, errChan, err := ssh.Stream(strings.Join(p.Config.Script, "\n"), p.Config.CommandTimeout)
|
||||
stdoutChan, stderrChan, doneChan, errChan, err := ssh.Stream(strings.Join(p.Config.Script, "\n"), time.Duration(p.Config.CommandTimeout) * time.Second)
|
||||
if err != nil {
|
||||
errChannel <- err
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user