Skip to content

Commit

Permalink
Merge pull request moby#28603 from thaJeztah/flipping-hosts
Browse files Browse the repository at this point in the history
swap position of "host" and "ip"
  • Loading branch information
crosbymichael authored Nov 18, 2016
2 parents e676648 + f1b9df9 commit 8851e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/stack/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8851e6b

Please sign in to comment.