mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2459 from arkodg/fix-error-check
Fix Error Check in NewNetwork
This commit is contained in:
commit
4540e13414
1 changed files with 1 additions and 1 deletions
|
@ -825,7 +825,7 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ...
|
|||
|
||||
err = c.addNetwork(network)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "restoring existing network") {
|
||||
if _, ok := err.(types.MaskableError); ok {
|
||||
// This error can be ignored and set this boolean
|
||||
// value to skip a refcount increment for configOnly networks
|
||||
skipCfgEpCount = true
|
||||
|
|
Loading…
Reference in a new issue