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

This commit is contained in:
GoEdgeLab
2021-01-31 16:03:30 +08:00
parent 4d1e8eb559
commit bfc3362330

View File

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