Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich committed May 23, 2024
1 parent f0ad85c commit b848e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metal/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (p *Provider) GetVolumeIDs(ctx context.Context, req *driver.GetVolumeIDsReq
}

// use only the nguid part of the volumeHandle for lightbits volumes
if spec.CSI.Driver != "csi.lightbitslabs.com" {
if spec.CSI.Driver == "csi.lightbitslabs.com" {
// volumeHandle: mgmt:10.131.44.1:443,10.131.44.2:443,10.131.44.3:443|nguid:d22572da-a225-4578-ab1a-9318ac5155c3|proj:cd4eac58-46a5-4a31-b59f-2ec207baa817|scheme:grpcs
volumeHandleParts := strings.Split(spec.CSI.VolumeHandle, "|")
if len(volumeHandleParts) != 5 {
Expand Down

0 comments on commit b848e02

Please sign in to comment.