mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix err in note at daemon/networkdriver/bridge/driver.go
Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
This commit is contained in:
parent
89db94ecf9
commit
e5bc50b5cd
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ func InitDriver(job *engine.Job) engine.Status {
|
|||
addrv4, addrsv6, err := networkdriver.GetIfaceAddr(bridgeIface)
|
||||
|
||||
if err != nil {
|
||||
// No Bridge existent. Create one
|
||||
// No Bridge existent, create one
|
||||
// If we're not using the default bridge, fail without trying to create it
|
||||
if !usingDefaultBridge {
|
||||
return job.Error(err)
|
||||
|
@ -137,7 +137,7 @@ func InitDriver(job *engine.Job) engine.Status {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
// Bridge exists already. Getting info...
|
||||
// Bridge exists already, getting info...
|
||||
// validate that the bridge ip matches the ip specified by BridgeIP
|
||||
if bridgeIP != "" {
|
||||
networkv4 = addrv4.(*net.IPNet)
|
||||
|
|
Loading…
Reference in a new issue