Skip to content

Commit

Permalink
Merge pull request moby#2459 from arkodg/fix-error-check
Browse files Browse the repository at this point in the history
Fix Error Check in NewNetwork
  • Loading branch information
selansen committed Oct 3, 2019
2 parents 0025177 + 7e575b8 commit 922cd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Expand Up @@ -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
Expand Down

0 comments on commit 922cd53

Please sign in to comment.