Skip to content

Commit c54ea7e

Browse files
nobiitniladrih
andauthored
Update pkg/select/blockdevice/select.go
Co-authored-by: Niladri Halder <[email protected]>
1 parent 128de36 commit c54ea7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/select/blockdevice/select.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (c *Config) getCandidateDevices(bdList *apis.BlockDeviceList) (*apis.BlockD
5858
FilterBlockDeviceName,
5959
)
6060
} else {
61-
if c.ClaimSpec.DeviceType != "sparse" {
61+
if c.ClaimSpec.DeviceType != blockdevice.SparseBlockDeviceType {
6262
// Unless explicitly specify DeviceType as sparse, device sparse will not be included
6363
filterKeys = append(filterKeys, FilterOutSparseBlockDevices)
6464
}

0 commit comments

Comments
 (0)