Skip to content

Commit

Permalink
fix: ssh: Closing net.Conn after SSH finished its execution (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Beuque <[email protected]>
  • Loading branch information
rbeuque74 authored Apr 21, 2020
1 parent ad6554c commit fdb1237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/plugins/builtin/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func execssh(stepName string, i interface{}, ctx interface{}) (interface{}, inte
if err != nil {
return nil, nil, err
}
defer client.Close()

session, err := client.NewSession()
if err != nil {
Expand Down

0 comments on commit fdb1237

Please sign in to comment.