Fix host-device gofmt
Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
parent
3b2afc93dc
commit
90e8e1faf9
@ -270,7 +270,7 @@ func moveLinkOut(containerNs ns.NetNS, ifName string) error {
|
||||
// function can be retried. Also bring the device back up, unless it was already down before.
|
||||
if err != nil {
|
||||
_ = netlink.LinkSetName(dev, ifName)
|
||||
if dev.Attrs().Flags & net.FlagUp == net.FlagUp {
|
||||
if dev.Attrs().Flags&net.FlagUp == net.FlagUp {
|
||||
_ = netlink.LinkSetUp(dev)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user