diff --git a/vendor/github.com/bmc-toolbox/bmclib/providers/hp/hp.go b/vendor/github.com/bmc-toolbox/bmclib/providers/hp/hp.go index 35d96a52..53d67862 100644 --- a/vendor/github.com/bmc-toolbox/bmclib/providers/hp/hp.go +++ b/vendor/github.com/bmc-toolbox/bmclib/providers/hp/hp.go @@ -210,6 +210,11 @@ type ChassisInfo struct { MessageId string `json:"MessageId"` } `json:"@Message.ExtendedInfo"` } `json:"error"` + Links struct { + ContainedBy struct { + ID string `json:"@odata.id"` + } + } } // Mem is the struct used to render the data from https://$ip/json/mem_info, it contains the ram data diff --git a/vendor/github.com/bmc-toolbox/bmclib/providers/hp/ilo/ilo.go b/vendor/github.com/bmc-toolbox/bmclib/providers/hp/ilo/ilo.go index 34e08d92..4edce073 100644 --- a/vendor/github.com/bmc-toolbox/bmclib/providers/hp/ilo/ilo.go +++ b/vendor/github.com/bmc-toolbox/bmclib/providers/hp/ilo/ilo.go @@ -524,6 +524,10 @@ func (i *Ilo) parseChassisInfo() (*hp.ChassisInfo, error) { return nil, fmt.Errorf(e) } + if chassisInfo.Links.ContainedBy.ID == "/redfish/v1/Chassis/EnclosureChassis" { + chassisInfo.ChassisType = "Blade" + } + // Matching the new interface to the old one, since the code still drops // off to the old interface in case the new interface is not available. chassisInfo.ChassisSn = chassisInfo.SerialNumber