From 867e934a1ad72b3a4d772e4bc21da1774f754b08 Mon Sep 17 00:00:00 2001 From: Lukas Gill Date: Mon, 14 Jan 2019 22:27:38 +0100 Subject: [PATCH] Fix mismatched type error (int and time.Duration) --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index e194772..a020687 100644 --- a/plugin.go +++ b/plugin.go @@ -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 {