sunty
2020-04-16 07658d2c4d1d187ef07e47bac71a2a628f730965
fix verification roleError
1个文件已修改
3 ■■■■■ 已修改文件
controllers/swfsControllers.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -184,6 +184,7 @@
//验证服务状态
func Verification(startupItem string, ip string) bool {
    resStatu := false
    fmt.Println(startupItem)
    switch startupItem {
    case StartScriptAsVolume:
        verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
@@ -201,7 +202,9 @@
        verificationMasterUrl := "http://" + ip + ":6333"
        verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
        _, masterErr := http.Get(verificationMasterUrl)
        fmt.Println("masterErr", masterErr)
        _, volume1Err := http.Get(verificationVolumeUrl)
        fmt.Println("volume1Err", volume1Err)
        if masterErr == nil && volume1Err == nil {
            resStatu = true
        }