Skip to content

Commit

Permalink
Use lower-case Server UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed Oct 31, 2024
1 parent 4fe9dfc commit 57b6683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/bmc_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package controller
import (
"context"
"fmt"
"strings"

"k8s.io/apimachinery/pkg/api/errors"

Expand Down Expand Up @@ -166,7 +167,7 @@ func (r *BMCReconciler) discoverServers(ctx context.Context, log logr.Logger, bm
Name: GetServerNameFromBMCandIndex(i, bmcObj),
},
Spec: metalv1alpha1.ServerSpec{
UUID: s.UUID,
UUID: strings.ToLower(s.UUID), // always use lower-case uuids
BMCRef: &v1.LocalObjectReference{Name: bmcObj.Name},
},
}
Expand Down

0 comments on commit 57b6683

Please sign in to comment.