mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon: Daemon.getInspectData: inline struct-literals
Also rename the "container" argument, which shadowed an import. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -6,11 +6,11 @@ import (
|
||||
)
|
||||
|
||||
// This sets platform-specific fields
|
||||
func setPlatformSpecificContainerFields(container *containerpkg.Container, contJSONBase *container.ContainerJSONBase) *container.ContainerJSONBase {
|
||||
contJSONBase.AppArmorProfile = container.AppArmorProfile
|
||||
contJSONBase.ResolvConfPath = container.ResolvConfPath
|
||||
contJSONBase.HostnamePath = container.HostnamePath
|
||||
contJSONBase.HostsPath = container.HostsPath
|
||||
func setPlatformSpecificContainerFields(ctr *containerpkg.Container, resp *container.ContainerJSONBase) *container.ContainerJSONBase {
|
||||
resp.AppArmorProfile = ctr.AppArmorProfile
|
||||
resp.ResolvConfPath = ctr.ResolvConfPath
|
||||
resp.HostnamePath = ctr.HostnamePath
|
||||
resp.HostsPath = ctr.HostsPath
|
||||
|
||||
return contJSONBase
|
||||
return resp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user