Skip to content

Commit

Permalink
resolve new sftp client failure
Browse files Browse the repository at this point in the history
  • Loading branch information
usual2970 committed Nov 5, 2024
1 parent 2458fa2 commit 718cfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/deployer/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (d *SSHDeployer) writeSftpFileString(sshCli *ssh.Client, path string, conte
}

func (d *SSHDeployer) writeSftpFile(sshCli *ssh.Client, path string, data []byte) error {
sftpCli, err := sftp.NewClient()
sftpCli, err := sftp.NewClient(sshCli)
if err != nil {
return xerrors.Wrap(err, "failed to create sftp client")
}
Expand Down

0 comments on commit 718cfcc

Please sign in to comment.