From 6e6b5acbb5282bca5103d16dd3c78ae3ca383c9e Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Tue, 23 Jan 2018 00:41:53 +0530 Subject: [PATCH] Use correct pv annotation to fetch volume ID. Signed-off-by: Humble Chirammal --- pkg/volume/glusterfs/glusterfs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go index 8f2618c765d..4c841f0ebe7 100644 --- a/pkg/volume/glusterfs/glusterfs.go +++ b/pkg/volume/glusterfs/glusterfs.go @@ -1085,8 +1085,8 @@ func getVolumeID(pv *v1.PersistentVolume, volumeName string) (string, error) { // Get volID from pvspec if available, else fill it from volumename. if pv != nil { - if pv.Annotations["VolID"] != "" { - volumeID = pv.Annotations["VolID"] + if pv.Annotations[heketiVolIDAnn] != "" { + volumeID = pv.Annotations[heketiVolIDAnn] } else { volumeID = dstrings.TrimPrefix(volumeName, volPrefix) }