Fix panic on error looking up volume driver

(-‸ლ)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 5baf8a411899b1aa39f921df8debfd925491be68
Component: engine
This commit is contained in:
Brian Goff
2017-04-04 09:18:50 -04:00
parent ffbcc00dc9
commit 1139afd6ff

View File

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