Explorar o código

Fix panic on error looking up volume driver

(-‸ლ)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff %!s(int64=8) %!d(string=hai) anos
pai
achega
5baf8a4118
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      volume/store/store.go

+ 1 - 1
volume/store/store.go

@@ -568,7 +568,7 @@ func (s *VolumeStore) Remove(v volume.Volume) error {
 
 	vd, err := volumedrivers.GetDriver(v.DriverName())
 	if err != nil {
-		return &OpErr{Err: err, Name: vd.Name(), Op: "remove"}
+		return &OpErr{Err: err, Name: v.DriverName(), Op: "remove"}
 	}
 
 	logrus.Debugf("Removing volume reference: driver %s, name %s", v.DriverName(), name)