Skip to content

Commit

Permalink
controller支持对container name的校验 TencentBlueKing#103
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Aug 7, 2023
1 parent d2a9e1e commit f0fd557
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit f0fd557

Please sign in to comment.