mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +08:00
libpod: use pasta Setup() over Setup2()
Setup2() calls Setup() so they are both the same thing, the idea was to
keep Setup2() around in c/common for a bit to avoid breaking changes
during our regular vendoring. Now just use Setup() so we can get rid of
Setup2() in c/common.
a7415c3eab
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -12,7 +12,7 @@ package libpod
|
|||||||
import "github.com/containers/common/libnetwork/pasta"
|
import "github.com/containers/common/libnetwork/pasta"
|
||||||
|
|
||||||
func (r *Runtime) setupPasta(ctr *Container, netns string) error {
|
func (r *Runtime) setupPasta(ctr *Container, netns string) error {
|
||||||
res, err := pasta.Setup2(&pasta.SetupOptions{
|
res, err := pasta.Setup(&pasta.SetupOptions{
|
||||||
Config: r.config,
|
Config: r.config,
|
||||||
Netns: netns,
|
Netns: netns,
|
||||||
Ports: ctr.convertPortMappings(),
|
Ports: ctr.convertPortMappings(),
|
||||||
|
Reference in New Issue
Block a user