Skip to content

Commit

Permalink
Update pkg/select/blockdevice/select.go
Browse files Browse the repository at this point in the history
Co-authored-by: Niladri Halder <[email protected]>
  • Loading branch information
nobiit and niladrih authored Sep 26, 2022
1 parent 128de36 commit c54ea7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/select/blockdevice/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (c *Config) getCandidateDevices(bdList *apis.BlockDeviceList) (*apis.BlockD
FilterBlockDeviceName,
)
} else {
if c.ClaimSpec.DeviceType != "sparse" {
if c.ClaimSpec.DeviceType != blockdevice.SparseBlockDeviceType {
// Unless explicitly specify DeviceType as sparse, device sparse will not be included
filterKeys = append(filterKeys, FilterOutSparseBlockDevices)
}
Expand Down

0 comments on commit c54ea7e

Please sign in to comment.