Skip to content

Commit

Permalink
UEFI vars go in device Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Dec 22, 2023
1 parent 777f72d commit 03571fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,16 +748,16 @@ func (a *InventoryCollectorAction) CollectUEFIVariables(ctx context.Context) err
return nil
}

if a.device.BIOS == nil {
a.device.BIOS.Metadata = map[string]string{}
if a.device.Metadata == nil {
a.device.Metadata = map[string]string{}
}

jsonBytes, err := json.Marshal(keyValues)
if err != nil {
return errors.Wrap(err, "marshaling uefi variables")
}

a.device.BIOS.Metadata["uefi-variables"] = string(jsonBytes)
a.device.Metadata["uefi-variables"] = string(jsonBytes)

return nil
}
Expand Down

0 comments on commit 03571fd

Please sign in to comment.