Skip to content

Commit

Permalink
Fix OS tweaks call
Browse files Browse the repository at this point in the history
The feature was not getting properly triggered, move it as
first operation in the configure

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
  • Loading branch information
Flavio Crisciani committed Jun 7, 2017
1 parent 23a2381 commit 233aa63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libnetwork/drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ func Fini(drv driverapi.Driver) {
}

func (d *driver) configure() error {

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

if d.store == nil {
return nil
}
Expand All @@ -188,9 +192,6 @@ func (d *driver) configure() error {
return d.initializeVxlanIdm()
}

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

return nil
}

Expand Down

0 comments on commit 233aa63

Please sign in to comment.