Merge pull request #2538 from wangyumu/add-error-invalid-default-address-pools
Fixes moby/moby#40388, produce an error with invalid address pool
This commit is contained in:
commit
6b3673877c
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ func Init(ic ipamapi.Callback, l, g interface{}) error {
|
|||
}
|
||||
}
|
||||
|
||||
ipamutils.ConfigLocalScopeDefaultNetworks(GetDefaultIPAddressPool())
|
||||
err := ipamutils.ConfigLocalScopeDefaultNetworks(GetDefaultIPAddressPool())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
a, err := ipam.NewAllocator(localDs, globalDs)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue