stmcginnis / gofish

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

Fix ManagedBy in ComputerSystem #126

Closed iurygregory closed 3 years ago

iurygregory commented 3 years ago

If Marshal and Unmarshal are executed in a CS struct with ManagedBy set, the struct after Unmarshal will have an empty ManagedBy list. This commit fix this problem and add tests to cover this scenario.