From c54ea7e76ad2ab24a69b3c2187d8f0958647d96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20Chi=E1=BA=BFn?= Date: Mon, 26 Sep 2022 18:49:50 +0700 Subject: [PATCH] Update pkg/select/blockdevice/select.go Co-authored-by: Niladri Halder --- pkg/select/blockdevice/select.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/select/blockdevice/select.go b/pkg/select/blockdevice/select.go index 4a05d09b7..b5a435a59 100644 --- a/pkg/select/blockdevice/select.go +++ b/pkg/select/blockdevice/select.go @@ -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) }