mirror of https://github.com/usual2970/certimate
				
				
				
			resolve new sftp client failure
							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 { | func (d *SSHDeployer) writeSftpFile(sshCli *ssh.Client, path string, data []byte) error { | ||||||
| 	sftpCli, err := sftp.NewClient() | 	sftpCli, err := sftp.NewClient(sshCli) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return xerrors.Wrap(err, "failed to create sftp client") | 		return xerrors.Wrap(err, "failed to create sftp client") | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 yoan
						yoan