aboutsummaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-28 12:40:14 -0400
committerGitHub <noreply@github.com>2021-09-28 12:40:14 -0400
commit14acec94b7f86ae329018e1e56fd111ff58bf057 (patch)
tree4ce14ad86a10621ac7b36130a6f839da40f50d41 /libpod/pod.go
parent05f62e31f94f85529e6a6fa6cf9c3e00df7bbb3d (diff)
parent5d6ea90e756cd48c90d9549d25c0150c9bb5c50c (diff)
downloadpodman-14acec94b7f86ae329018e1e56fd111ff58bf057.tar.gz
podman-14acec94b7f86ae329018e1e56fd111ff58bf057.tar.bz2
podman-14acec94b7f86ae329018e1e56fd111ff58bf057.zip
Merge pull request #11768 from vrothberg/deep-copy
libpod: do not call (*container).Config()
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index e4516b354..c0b0a974b 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -164,8 +164,7 @@ func (p *Pod) PidMode() string {
if err != nil {
return ""
}
- conf := infra.Config()
- ctrSpec := conf.Spec
+ ctrSpec := infra.config.Spec
if ctrSpec != nil && ctrSpec.Linux != nil {
for _, ns := range ctrSpec.Linux.Namespaces {
if ns.Type == specs.PIDNamespace {
@@ -186,8 +185,7 @@ func (p *Pod) UserNSMode() string {
if err != nil {
return ""
}
- conf := infra.Config()
- ctrSpec := conf.Spec
+ ctrSpec := infra.config.Spec
if ctrSpec != nil && ctrSpec.Linux != nil {
for _, ns := range ctrSpec.Linux.Namespaces {
if ns.Type == specs.UserNamespace {