mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-09 05:59:50 +00:00
resolve new sftp client failure
This commit is contained in:
parent
2458fa26d8
commit
718cfccbea
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user