stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
211 stars 113 forks source link

Handle Chassis drives returned as Links #145

Closed stmcginnis closed 3 years ago

stmcginnis commented 3 years ago

In version v1.2.0 of the spec, Drives were added to the Chassis.Links property. But in v1.14.0 of the spec, Chassis.Drives was added as a direct property.

This updates the Chassis.Drives() call to handle either implementation, preferring the newer method.

Closes: #143