diff options
author | zhangguanzhang <zhangguanzhang@qq.com> | 2020-11-18 16:52:49 +0800 |
---|---|---|
committer | zhangguanzhang <zhangguanzhang@qq.com> | 2020-11-18 18:06:06 +0800 |
commit | 76a38fc3f236f9197ab0761d5cc11cb37cee5e41 (patch) | |
tree | c5227aac15526a287ea5de2f30b0550ad60da3b2 /libpod/pod_api.go | |
parent | a6f7afd41729edbe0d8cbf21bab5b475c6a13f9e (diff) | |
download | podman-76a38fc3f236f9197ab0761d5cc11cb37cee5e41.tar.gz podman-76a38fc3f236f9197ab0761d5cc11cb37cee5e41.tar.bz2 podman-76a38fc3f236f9197ab0761d5cc11cb37cee5e41.zip |
Fix podman pod inspect show wrong MAC string
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'libpod/pod_api.go')
-rw-r--r-- | libpod/pod_api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/pod_api.go b/libpod/pod_api.go index 87ac5c07a..845948dd3 100644 --- a/libpod/pod_api.go +++ b/libpod/pod_api.go @@ -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 |