Skip to content

Commit

Permalink
Set PartitionID (#595)
Browse files Browse the repository at this point in the history
* Set PartitionID

* Fix tests
  • Loading branch information
majst01 authored Nov 13, 2024
1 parent b792d60 commit 59690db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/metal-api/internal/grpc/boot-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func (b *BootService) Register(ctx context.Context, req *v1.BootServiceRegisterR
m.BIOS.Date = req.Bios.Date
m.IPMI = ipmi
m.State.MetalHammerVersion = req.MetalHammerVersion
m.PartitionID = req.PartitionId

err = b.ds.UpdateMachine(&old, m)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func createMachineRegisterRequest(i int) *grpcv1.BootServiceRegisterRequest {
Vendor: "metal",
Date: "1970",
},
PartitionId: "p1",
Hardware: &grpcv1.MachineHardware{
Memory: 4,
Cpus: []*grpcv1.MachineCPU{
Expand Down

0 comments on commit 59690db

Please sign in to comment.