Browse Source

Fix panic on error looking up volume driver

(-‸ლ)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 8 năm trước cách đây
mục cha
commit
5baf8a4118
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)