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:
Sebastiaan van Stijn 2020-03-31 19:45:25 +02:00 committed by GitHub
commit 6b3673877c

View file

@ -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 {