skip makeVeth retry if a vethPeerName is set.
This commit is contained in:
parent
c204dbd47c
commit
545a77f4bb
@ -77,7 +77,7 @@ func makeVeth(name, vethPeerName string, mtu int) (peerName string, veth netlink
|
||||
return
|
||||
|
||||
case os.IsExist(err):
|
||||
if peerExists(peerName) {
|
||||
if peerExists(peerName) && vethPeerName == "" {
|
||||
continue
|
||||
}
|
||||
err = fmt.Errorf("container veth name provided (%v) already exists", name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user