Merge pull request #315 from GLYASAI/V5.1

[FIX] no gateway nodes are available
This commit is contained in:
barnettZQG 2019-07-08 18:37:53 +08:00 committed by GitHub
commit 78d829cdc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ func clusterStatus(roleList []map[string]string, ReadyList []map[string]string)
manageFlag = true
}
if strings.Contains(v["role"], "gateway") && v["status"] == "running" {
manageFlag = true
gatewayFlag = true
}
}
if !manageFlag {