mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
fefb622447
1 changed files with 2 additions and 4 deletions
|
@ -181,10 +181,8 @@ func (c *controller) defaultGwNetwork() (Network, error) {
|
||||||
defer func() { <-procGwNetwork }()
|
defer func() { <-procGwNetwork }()
|
||||||
|
|
||||||
n, err := c.NetworkByName(libnGWNetwork)
|
n, err := c.NetworkByName(libnGWNetwork)
|
||||||
if err != nil {
|
if _, ok := err.(types.NotFoundError); ok {
|
||||||
if _, ok := err.(types.NotFoundError); ok {
|
n, err = c.createGWNetwork()
|
||||||
n, err = c.createGWNetwork()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue