From 54f75814d963bba21c32e294ce98505e164e32c2 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Tue, 4 Apr 2017 09:18:50 -0400 Subject: [PATCH] Fix panic on error looking up volume driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (-‸ლ) Signed-off-by: Brian Goff (cherry picked from commit 5baf8a411899b1aa39f921df8debfd925491be68) Signed-off-by: Brian Goff --- volume/store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volume/store/store.go b/volume/store/store.go index 38afd86f45..0b8efc6c87 100644 --- a/volume/store/store.go +++ b/volume/store/store.go @@ -542,7 +542,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)