Merge pull request #1374 from cyphar/revert-1373

Revert "fix minor issue"
This commit is contained in:
Michael Crosby 2017-03-20 10:24:42 -07:00 committed by GitHub
commit dbfc5be208
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func (v *veth) create(n *network, nspid int) (err error) {
netlink.LinkDel(veth)
}
}()
if err = v.attach(&n.Network); err != nil {
if err := v.attach(&n.Network); err != nil {
return err
}
child, err := netlink.LinkByName(n.TempVethPeerName)