From 5ca343d24a23dcf4f3c4183a7ecd4f792483243f Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Tue, 4 Jul 2023 12:19:55 +0000 Subject: [PATCH] OCPBUGS-13356: Fix 'vendor' root device hint evaluation (#5200) Co-authored-by: Zane Bitter --- internal/host/hostutil/host_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/host/hostutil/host_utils.go b/internal/host/hostutil/host_utils.go index d5287c856d..037950a07d 100644 --- a/internal/host/hostutil/host_utils.go +++ b/internal/host/hostutil/host_utils.go @@ -202,7 +202,7 @@ func GetAcceptableDisksWithHints(disks []*models.Disk, hints *bmh_v1alpha1.RootD continue } - if hints.Vendor != "" && !strings.Contains(disk.Vendor, hints.Model) { + if hints.Vendor != "" && !strings.Contains(disk.Vendor, hints.Vendor) { continue }