From 07658d2c4d1d187ef07e47bac71a2a628f730965 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 16 四月 2020 15:17:11 +0800 Subject: [PATCH] fix verification roleError --- controllers/swfsControllers.go | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go index 09138f4..450234c 100644 --- a/controllers/swfsControllers.go +++ b/controllers/swfsControllers.go @@ -184,9 +184,10 @@ //楠岃瘉鏈嶅姟鐘舵�� func Verification(startupItem string, ip string) bool { resStatu := false + fmt.Println(startupItem) switch startupItem { case StartScriptAsVolume: - verificationVolumeUrl := "http://" + ip + ":6700" + verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html" _, volume1Err := http.Get(verificationVolumeUrl) if volume1Err == nil { resStatu = true @@ -199,9 +200,11 @@ } case StartScriptAsMaVo: verificationMasterUrl := "http://" + ip + ":6333" - verificationVolumeUrl := "http://" + ip + ":6700" + 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 } -- Gitblit v1.8.0