From e5bdcda7749b872ae7fe91445527e29ff409427f Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 22 Jul 2020 16:48:10 -0400 Subject: [PATCH] fix hosttarget path --- client/pluginmanager/csimanager/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pluginmanager/csimanager/volume.go b/client/pluginmanager/csimanager/volume.go index 014ecea21b5..9f6a5cf2e15 100644 --- a/client/pluginmanager/csimanager/volume.go +++ b/client/pluginmanager/csimanager/volume.go @@ -122,7 +122,7 @@ func (v *volumeManager) ensureAllocDir(vol *structs.CSIVolume, alloc *structs.Al return "", false, fmt.Errorf("mount point detection failed for volume (%s): %v", vol.ID, err) } - return allocPath, !isNotMount, nil + return targetPath, !isNotMount, nil } func volumeCapability(vol *structs.CSIVolume, usage *UsageOptions) (*csi.VolumeCapability, error) {