diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-26 16:58:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 16:58:27 +0100 |
commit | 19016f3cd88794990fb4290ea72bbfb08118235c (patch) | |
tree | 87f09a4ec72c3f88f9dcbbb6c36b46a38320e658 /pkg/spec/namespaces.go | |
parent | 75d0d48d20f7406079a641829917356ca00218e8 (diff) | |
parent | 418dee100b9029bbc44141138bc3d03a66da4a99 (diff) | |
download | podman-19016f3cd88794990fb4290ea72bbfb08118235c.tar.gz podman-19016f3cd88794990fb4290ea72bbfb08118235c.tar.bz2 podman-19016f3cd88794990fb4290ea72bbfb08118235c.zip |
Merge pull request #5332 from giuseppe/uts-lookup-container
spec: allow container alias name in lookup
Diffstat (limited to 'pkg/spec/namespaces.go')
-rw-r--r-- | pkg/spec/namespaces.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/namespaces.go b/pkg/spec/namespaces.go index 1f98e6e25..838d95c54 100644 --- a/pkg/spec/namespaces.go +++ b/pkg/spec/namespaces.go @@ -422,7 +422,7 @@ func (c *UtsConfig) ConfigureGenerator(g *generate.Generator, net *NetworkConfig if hostname == "" { switch { case utsCtrID != "": - utsCtr, err := runtime.GetContainer(utsCtrID) + utsCtr, err := runtime.LookupContainer(utsCtrID) if err != nil { return errors.Wrapf(err, "unable to retrieve hostname from dependency container %s", utsCtrID) } |