mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
controller.loadIPAMDriver: Unwrap error type returned by PluginGetter
moby/moby commitb27f70d45
wraps the ErrNotFound error returned when a plugin cannot be found, to include a backtrace. This changes the type of the error, so contoller.loadIPAMDriver no longer converts it to a libnetwork plugin.NotFoundError. This is a similar patch as was merged in9b114971e5
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
d9ac962114
commit
1425fd4fcc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue