diff --git a/pkg/driver/controllerserver.go b/pkg/driver/controllerserver.go index 8630c3e..4ce6d86 100644 --- a/pkg/driver/controllerserver.go +++ b/pkg/driver/controllerserver.go @@ -210,7 +210,7 @@ func sanitizeVolumeID(volumeID string) string { func volumeIDToBucketPrefix(volumeID string) (string, string) { // if the volumeID has a slash in it, this volume is // stored under a certain prefix within the bucket. - splitVolumeID := strings.Split(volumeID, "/") + splitVolumeID := strings.SplitN(volumeID, "/", 2) if len(splitVolumeID) > 1 { return splitVolumeID[0], splitVolumeID[1] }