1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #2365 from thaJeztah/fix_loadIPAMDriver_error_handling

controller.loadIPAMDriver: Unwrap error type returned by PluginGetter
This commit is contained in:
Euan Harris 2019-06-25 15:15:45 +01:00 committed by GitHub
commit 1e476e7de6

View file

@ -1298,7 +1298,7 @@ func (c *controller) loadIPAMDriver(name string) error {
}
if err != nil {
if err == plugins.ErrNotFound {
if errors.Cause(err) == plugins.ErrNotFound {
return types.NotFoundErrorf(err.Error())
}
return err