We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3ff4f7 commit f0c07b1Copy full SHA for f0c07b1
pkg/driver/controllerserver.go
@@ -210,7 +210,7 @@ func sanitizeVolumeID(volumeID string) string {
210
func volumeIDToBucketPrefix(volumeID string) (string, string) {
211
// if the volumeID has a slash in it, this volume is
212
// stored under a certain prefix within the bucket.
213
- splitVolumeID := strings.Split(volumeID, "/")
+ splitVolumeID := strings.SplitN(volumeID, "/", 2)
214
if len(splitVolumeID) > 1 {
215
return splitVolumeID[0], splitVolumeID[1]
216
}
0 commit comments