Fix panic on error looking up volume driver
(-‸ლ)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 5baf8a4118
)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
ac7820f779
commit
54f75814d9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue