Browse Source

Merge pull request #2365 from thaJeztah/fix_loadIPAMDriver_error_handling

controller.loadIPAMDriver: Unwrap error type returned by PluginGetter
Euan Harris 6 years ago
parent
commit
1e476e7de6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/controller.go

+ 1 - 1
libnetwork/controller.go

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