mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix network inspect for default networks.
- Keep old fields in NetworkSetting to respect the deprecation policy. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
05534b6f80
commit
f301c5765a
7 changed files with 123 additions and 49 deletions
|
|
@ -50,7 +50,7 @@ func (daemon *Daemon) ContainerInspectPre120(name string) (*v1p19.ContainerJSON,
|
|||
container.hostConfig.CPUShares,
|
||||
container.hostConfig.CpusetCpus,
|
||||
}
|
||||
networkSettings := getBackwardsCompatibleNetworkSettings(container.NetworkSettings)
|
||||
networkSettings := daemon.getBackwardsCompatibleNetworkSettings(container.NetworkSettings)
|
||||
|
||||
return &v1p19.ContainerJSON{base, volumes, volumesRW, config, networkSettings}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue