From f0fd557492de7c5da8ee43565865b0775301774f Mon Sep 17 00:00:00 2001 From: tbs60 Date: Mon, 7 Aug 2023 19:10:37 +0800 Subject: [PATCH] =?UTF-8?q?controller=E6=94=AF=E6=8C=81=E5=AF=B9container?= =?UTF-8?q?=20name=E7=9A=84=E6=A0=A1=E9=AA=8C=20#103?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../booster/bk_dist/controller/pkg/manager/remote/mgr.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/booster/bk_dist/controller/pkg/manager/remote/mgr.go b/src/backend/booster/bk_dist/controller/pkg/manager/remote/mgr.go index 95753072..b9db661f 100644 --- a/src/backend/booster/bk_dist/controller/pkg/manager/remote/mgr.go +++ b/src/backend/booster/bk_dist/controller/pkg/manager/remote/mgr.go @@ -516,10 +516,6 @@ func (m *Mgr) getContainerHostName(h *dcProtocol.Host) (string, error) { return "", fmt.Errorf("get host name failed with no result") } - if runtime.GOOS == "windows" { - return string(result.Results[0].OutputMessage), nil - } - envs := strings.Split(string(result.Results[0].OutputMessage), "\n") for _, s := range envs { if runtime.GOOS == "linux" {