diff --git a/server/bootserver.go b/server/bootserver.go index 6b1ef1bc..a9f90609 100644 --- a/server/bootserver.go +++ b/server/bootserver.go @@ -154,8 +154,8 @@ func handleIgnitionIPXEBoot(w http.ResponseWriter, r *http.Request, k8sClient cl } if len(ipxeBootConfigList.Items) == 0 { - //Some OSes standardizes SystemUUIDs to lowercase, which may cause mismatches. - if err := k8sClient.List(ctx, ipxeBootConfigList, client.MatchingFields{bootv1alpha1.SystemUUIDIndexKey: strings.ToLower(uuid)}); err != nil { + //Some OSes standardizes SystemUUIDs to uppercase, which may cause mismatches. + if err := k8sClient.List(ctx, ipxeBootConfigList, client.MatchingFields{bootv1alpha1.SystemUUIDIndexKey: strings.ToUpper(uuid)}); err != nil { http.Error(w, "Resource Not Found", http.StatusNotFound) log.Info("Failed to find IPXEBootConfig", "error", err.Error()) return @@ -232,8 +232,8 @@ func handleIgnitionHTTPBoot(w http.ResponseWriter, r *http.Request, k8sClient cl } if len(HTTPBootConfigList.Items) == 0 { - //Some OSes standardizes SystemUUIDs to lowercase, which may cause mismatches. - if err := k8sClient.List(ctx, HTTPBootConfigList, client.MatchingFields{bootv1alpha1.SystemUUIDIndexKey: strings.ToLower(uuid)}); err != nil { + //Some OSes standardizes SystemUUIDs to uppercase, which may cause mismatches. + if err := k8sClient.List(ctx, HTTPBootConfigList, client.MatchingFields{bootv1alpha1.SystemUUIDIndexKey: strings.ToUpper(uuid)}); err != nil { http.Error(w, "Resource Not Found", http.StatusNotFound) log.Info("Failed to find HTTPBootConfigList", "error", err.Error()) return