Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化代码 #244

Merged
merged 2 commits into from
Mar 24, 2020
Merged

优化代码 #244

merged 2 commits into from
Mar 24, 2020

Conversation

PatHoo
Copy link
Contributor

@PatHoo PatHoo commented Mar 24, 2020

[SKIP CI]seaols: 一句话简短描述该PR内容

@cuisongliu cuisongliu linked an issue Mar 24, 2020 that may be closed by this pull request
@cuisongliu cuisongliu merged commit 05e26c5 into labring:develop Mar 24, 2020
@PatHoo PatHoo mentioned this pull request Mar 24, 2020
@PatHoo PatHoo deleted the i239 branch March 24, 2020 06:40
@@ -30,30 +28,25 @@ func (s *SealosInstaller) CheckValid() {
}
var session *ssh.Session
var errors []error
var hostnames []string
dict := make(map[string]bool)
for _, h := range s.Hosts {
session, err := SSHConfig.Connect(h)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cuisongliu 这个session不需要的吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

缺陷: 主机名重复会导致集群异常
3 participants