diff options
author | Matthew Heon <mheon@redhat.com> | 2020-07-14 09:07:08 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-07-14 12:03:11 -0400 |
commit | 1fdfd52eeb513c8d6fad11f53baeef97151775a6 (patch) | |
tree | 7f28bbc78b2ab7709cb224022f89ecf816b9da50 /libpod/pod_api.go | |
parent | 41457b5a28532d410517b1afb1759e2724d03cab (diff) | |
download | podman-1fdfd52eeb513c8d6fad11f53baeef97151775a6.tar.gz podman-1fdfd52eeb513c8d6fad11f53baeef97151775a6.tar.bz2 podman-1fdfd52eeb513c8d6fad11f53baeef97151775a6.zip |
Populate remaining unused fields in `pod inspect`
We were hard-coding two fields to false, instead of grabbing
their value from the pod config, which means that `pod inspect`
would print the wrong value always.
Fixes #6968
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/pod_api.go')
-rw-r--r-- | libpod/pod_api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/pod_api.go b/libpod/pod_api.go index cc10a3355..f889ba789 100644 --- a/libpod/pod_api.go +++ b/libpod/pod_api.go @@ -535,10 +535,10 @@ func (p *Pod) Inspect() (*define.InspectPodData, error) { State: podState, Hostname: p.config.Hostname, Labels: p.Labels(), - CreateCgroup: false, + CreateCgroup: p.config.UsePodCgroup, CgroupParent: p.CgroupParent(), CgroupPath: p.state.CgroupPath, - CreateInfra: false, + CreateInfra: infraConfig != nil, InfraContainerID: p.state.InfraContainerID, InfraConfig: infraConfig, SharedNamespaces: sharesNS, |