Skip to content

Commit

Permalink
Fix missing err assignment in bridge creation
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
  • Loading branch information
titanous committed Jan 23, 2015
1 parent 62c50ab commit d5c78a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/networkdriver/bridge/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func configureBridge(bridgeIP string, bridgeIPv6 string, enableIPv6 bool) error
return err
}

if netlink.NetworkLinkAddIp(iface, ipAddr, ipNet); err != nil {
if err := netlink.NetworkLinkAddIp(iface, ipAddr, ipNet); err != nil {
return fmt.Errorf("Unable to add private network: %s", err)
}

Expand All @@ -413,7 +413,7 @@ func configureBridge(bridgeIP string, bridgeIPv6 string, enableIPv6 bool) error
return err
}

if netlink.NetworkLinkAddIp(iface, ipAddr6, ipNet6); err != nil {
if err := netlink.NetworkLinkAddIp(iface, ipAddr6, ipNet6); err != nil {
return fmt.Errorf("Unable to add private IPv6 network: %s", err)
}
}
Expand Down

0 comments on commit d5c78a4

Please sign in to comment.