mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Fix podman pod inspect show wrong MAC string
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
This commit is contained in:
@ -67,7 +67,7 @@ type InspectPodInfraConfig struct {
|
||||
StaticIP net.IP
|
||||
// StaticMAC is a static MAC address that will be assigned to the infra
|
||||
// container and then used by the pod.
|
||||
StaticMAC net.HardwareAddr
|
||||
StaticMAC string
|
||||
// NoManageResolvConf indicates that the pod will not manage resolv.conf
|
||||
// and instead each container will handle their own.
|
||||
NoManageResolvConf bool
|
||||
|
@ -535,7 +535,7 @@ func (p *Pod) Inspect() (*define.InspectPodData, error) {
|
||||
infraConfig = new(define.InspectPodInfraConfig)
|
||||
infraConfig.HostNetwork = p.config.InfraContainer.HostNetwork
|
||||
infraConfig.StaticIP = p.config.InfraContainer.StaticIP
|
||||
infraConfig.StaticMAC = p.config.InfraContainer.StaticMAC
|
||||
infraConfig.StaticMAC = p.config.InfraContainer.StaticMAC.String()
|
||||
infraConfig.NoManageResolvConf = p.config.InfraContainer.UseImageResolvConf
|
||||
infraConfig.NoManageHosts = p.config.InfraContainer.UseImageHosts
|
||||
|
||||
|
Reference in New Issue
Block a user