Skip to content

Commit

Permalink
Fix error handling about bridgeSetup
Browse files Browse the repository at this point in the history
Fix the error from bridgeSetup doesn't handle by the defer function in the createNetwork function.

Signed-off-by: Terry Chu <jubosh.tw@gmail.com>
  • Loading branch information
hzue committed Jul 5, 2018
1 parent 820ca50 commit 6c7c601
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,7 @@ func (d *driver) checkConflict(config *networkConfiguration) error {
return nil
}

func (d *driver) createNetwork(config *networkConfiguration) error {
var err error

func (d *driver) createNetwork(config *networkConfiguration) (err error) {
defer osl.InitOSContext()()

networkList := d.getNetworks()
Expand Down

0 comments on commit 6c7c601

Please sign in to comment.