mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #28603 from thaJeztah/flipping-hosts
swap position of "host" and "ip"
This commit is contained in:
commit
8851e6ba70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue