Skip to content

Commit

Permalink
Multiple tags formatting issue (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Sameer Shaikh <sameer.shaikh@ibm.com>

Signed-off-by: Sameer Shaikh <sameer.shaikh@ibm.com>
  • Loading branch information
sameshai committed Nov 18, 2022
1 parent 11f088e commit 3807ca2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion block/provider/create_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package provider

import (
"strings"
"time"

"github.com/IBM/ibmcloud-volume-interface/lib/metrics"
Expand Down Expand Up @@ -156,7 +157,9 @@ func validateVolumeRequest(volumeRequest *provider.Volume, clusterVolumeLabel st

//Append the clusterVolumeLabel to existing tag list only if it is non-empty
if len(clusterVolumeLabel) != 0 {
volumeRequest.VPCVolume.Tags = append(volumeRequest.VPCVolume.Tags, clusterVolumeLabel)
tagstr := strings.TrimSpace(clusterVolumeLabel)
clusterTags := strings.Split(tagstr, ",")
volumeRequest.VPCVolume.Tags = append(volumeRequest.VPCVolume.Tags, clusterTags...)
}

return resourceGroup, iops, nil
Expand Down

0 comments on commit 3807ca2

Please sign in to comment.