通过SSH远程安装/升级节点时连接错误也单独标识出来

This commit is contained in:
刘祥超
2021-01-31 16:03:30 +08:00
parent 844e0d6120
commit 009b48602e

View File

@@ -186,6 +186,7 @@ func (this *Queue) InstallNode(nodeId int64, installStatus *models.NodeInstallSt
PrivateKey: grant.PrivateKey,
})
if err != nil {
installStatus.ErrorCode = "SSH_LOGIN_FAILED"
return err
}
defer func() {