Skip to content

Commit f0c07b1

Browse files
committed
Fix bucket/path split for volume names
1 parent f3ff4f7 commit f0c07b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driver/controllerserver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func sanitizeVolumeID(volumeID string) string {
210210
func volumeIDToBucketPrefix(volumeID string) (string, string) {
211211
// if the volumeID has a slash in it, this volume is
212212
// stored under a certain prefix within the bucket.
213-
splitVolumeID := strings.Split(volumeID, "/")
213+
splitVolumeID := strings.SplitN(volumeID, "/", 2)
214214
if len(splitVolumeID) > 1 {
215215
return splitVolumeID[0], splitVolumeID[1]
216216
}

0 commit comments

Comments
 (0)