diff options
Diffstat (limited to 'pkg/netns/netns_linux.go')
| -rw-r--r-- | pkg/netns/netns_linux.go | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/pkg/netns/netns_linux.go b/pkg/netns/netns_linux.go index 6817a3abd..0b7d1782c 100644 --- a/pkg/netns/netns_linux.go +++ b/pkg/netns/netns_linux.go @@ -29,8 +29,8 @@ import (  	"sync"  	"github.com/containernetworking/plugins/pkg/ns" -	"github.com/containers/podman/v2/pkg/rootless" -	"github.com/containers/podman/v2/pkg/util" +	"github.com/containers/podman/v3/pkg/rootless" +	"github.com/containers/podman/v3/pkg/util"  	"github.com/sirupsen/logrus"  	"golang.org/x/sys/unix"  ) @@ -51,7 +51,6 @@ func getNSRunDir() (string, error) {  // NewNS creates a new persistent (bind-mounted) network namespace and returns  // an object representing that namespace, without switching to it.  func NewNS() (ns.NetNS, error) { -  	nsRunDir, err := getNSRunDir()  	if err != nil {  		return nil, err @@ -92,7 +91,6 @@ func NewNS() (ns.NetNS, error) {  		if err != nil {  			return nil, fmt.Errorf("mount --make-rshared %s failed: %q", nsRunDir, err)  		} -  	}  	nsName := fmt.Sprintf("cni-%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:]) | 
