Skip to content

Commit

Permalink
Make Attribute UpperBound a big.Int
Browse files Browse the repository at this point in the history
Some Dell systems have been found to return an UpperBound value that
overflows an int64, causing unmarshalling errors. This makes the upper
bould a big.Int to accomodate really large values.

Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed May 20, 2024
1 parent 48b8b0f commit 40307ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redfish/attributeregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package redfish

import (
"encoding/json"
"math/big"

"github.com/stmcginnis/gofish/common"
)
Expand Down Expand Up @@ -86,7 +87,7 @@ type Attribute struct {
// The UEFI namespace ID for the attribute.
UefiNamespaceID string `json:"UefiNamespaceId"`
// The upper limit for an integer attribute.
UpperBound int64
UpperBound big.Int
// An array of the possible values for enumerated attribute values.
Value []AttributeValue
// A valid regular expression, according to the Perl regular expression dialect,
Expand Down
File renamed without changes.

0 comments on commit 40307ac

Please sign in to comment.