Skip to content

Commit 117682f

Browse files
YashasG98GouthamML
authored andcommitted
[OKE-36783] Fix instance ID being passed as volume ID bug for boot volumes
1 parent 55af691 commit 117682f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/csi/driver/bv_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex
643643
}
644644

645645
bootVolume := false
646-
if client.IsBootVolume(id) { // is this supposed to be req.VolumeId?
646+
if client.IsBootVolume(req.VolumeId) {
647647
if err := d.validateCapabilities([]*csi.VolumeCapability{req.VolumeCapability}, supportedBootVolumeCapabilities); err != nil {
648648
return nil, status.Error(codes.InvalidArgument, err.Error())
649649
}

0 commit comments

Comments
 (0)