소스 검색

Merge pull request #28603 from thaJeztah/flipping-hosts

swap position of "host" and "ip"
Michael Crosby 8 년 전
부모
커밋
8851e6ba70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cli/command/stack/deploy.go

+ 1 - 1
cli/command/stack/deploy.go

@@ -531,7 +531,7 @@ func convertService(
 func convertExtraHosts(extraHosts map[string]string) []string {
 	hosts := []string{}
 	for host, ip := range extraHosts {
-		hosts = append(hosts, fmt.Sprintf("%s %s", host, ip))
+		hosts = append(hosts, fmt.Sprintf("%s %s", ip, host))
 	}
 	return hosts
 }