Browse code

Fix panic on error looking up volume driver

(-‸ლ)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 5baf8a411899b1aa39f921df8debfd925491be68)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Brian Goff authored on 2017/04/04 22:18:50
Showing 1 changed files
... ...
@@ -542,7 +542,7 @@ func (s *VolumeStore) Remove(v volume.Volume) error {
542 542
 
543 543
 	vd, err := volumedrivers.GetDriver(v.DriverName())
544 544
 	if err != nil {
545
-		return &OpErr{Err: err, Name: vd.Name(), Op: "remove"}
545
+		return &OpErr{Err: err, Name: v.DriverName(), Op: "remove"}
546 546
 	}
547 547
 
548 548
 	logrus.Debugf("Removing volume reference: driver %s, name %s", v.DriverName(), name)