diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-28 12:40:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 12:40:14 -0400 |
commit | 14acec94b7f86ae329018e1e56fd111ff58bf057 (patch) | |
tree | 4ce14ad86a10621ac7b36130a6f839da40f50d41 /libpod/oci_conmon_linux.go | |
parent | 05f62e31f94f85529e6a6fa6cf9c3e00df7bbb3d (diff) | |
parent | 5d6ea90e756cd48c90d9549d25c0150c9bb5c50c (diff) | |
download | podman-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/oci_conmon_linux.go')
-rw-r--r-- | libpod/oci_conmon_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go index 56c7a90aa..f82fc4ce6 100644 --- a/libpod/oci_conmon_linux.go +++ b/libpod/oci_conmon_linux.go @@ -1150,7 +1150,7 @@ func (r *ConmonOCIRuntime) createOCIContainer(ctr *Container, restoreOptions *Co if ctr.config.NetMode.IsSlirp4netns() || rootless.IsRootless() { if ctr.config.PostConfigureNetNS { - havePortMapping := len(ctr.Config().PortMappings) > 0 + havePortMapping := len(ctr.config.PortMappings) > 0 if havePortMapping { ctr.rootlessPortSyncR, ctr.rootlessPortSyncW, err = os.Pipe() if err != nil { |