region: guests: sshable: return early on sshable=true

This commit is contained in:
Yousong Zhou
2021-04-12 16:52:07 +08:00
parent 012df167d5
commit ba71fcaaa2
+1
View File
@@ -298,6 +298,7 @@ func (guest *SGuest) sshableTry(
if client, err := conf.ConnectContext(ctx); err == nil {
defer client.Close()
methodData.Sshable = true
ok = true
} else {
methodData.Reason = err.Error()
}