Skip to content

Commit

Permalink
Change source of serial number in sysInfo function
Browse files Browse the repository at this point in the history
The serial number returned by the sysInfo function in info_linux.go has been fixed. Previously, it was incorrectly fetched from the Chassis object. Now it is correctly fetched from the Product object. This aligns better with the expected system info retrieval method.
  • Loading branch information
bcmmbaga committed Jun 27, 2024
1 parent d2157bd commit 474ad5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/system/info_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ func _getInfo() string {
func sysInfo() (serialNumber string, productName string, manufacturer string) {
var si sysinfo.SysInfo
si.GetSysInfo()
return si.Chassis.Serial, si.Product.Name, si.Product.Vendor
return si.Product.Serial, si.Product.Name, si.Product.Vendor
}

0 comments on commit 474ad5d

Please sign in to comment.