Merge pull request #32347 from cpuguy83/fix_volumestore_panic

Fix panic on error looking up volume driver
This commit is contained in:
Vincent Demeester 2017-04-04 18:55:13 +02:00 committed by GitHub
commit f6b7dc9837

View file

@ -568,7 +568,7 @@ func (s *VolumeStore) Remove(v volume.Volume) error {
vd, err := volumedrivers.GetDriver(v.DriverName()) vd, err := volumedrivers.GetDriver(v.DriverName())
if err != nil { 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) logrus.Debugf("Removing volume reference: driver %s, name %s", v.DriverName(), name)