mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix error message on bridge network creation conflict.
We now report the correct bridge name and network id when reporting a conflict. This fixes #914 Signed-off-by: Ryan Campbell <campbellr@gmail.com>
This commit is contained in:
parent
22cfa44e9a
commit
1417b4ba1d
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ func (d *driver) createNetwork(config *networkConfiguration) error {
|
||||||
nw.Unlock()
|
nw.Unlock()
|
||||||
if err := nwConfig.Conflicts(config); err != nil {
|
if err := nwConfig.Conflicts(config); err != nil {
|
||||||
return types.ForbiddenErrorf("cannot create network %s (%s): conflicts with network %s (%s): %s",
|
return types.ForbiddenErrorf("cannot create network %s (%s): conflicts with network %s (%s): %s",
|
||||||
nwConfig.BridgeName, config.ID, nw.id, nw.config.BridgeName, err.Error())
|
config.ID, config.BridgeName, nwConfig.ID, nwConfig.BridgeName, err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue