Cray-HPE / gru

A utility for reading and modifying BMCs (e.g. iLO, RMMC) using RedFish (gofish).
MIT License
6 stars 2 forks source link

use a StringSlice for bios attributes to properly parse and display them #68

Closed jacobsalmela closed 4 months ago

jacobsalmela commented 4 months ago

Summary and Scope

When querying multiple bios attributes, separated by commas, they would be interpreted as a single key:

gru --config "${GRU_CONF}" bios get --attributes  Key1,Key2 127.0.0.1:5000 
Asynchronously querying [    1] hosts ... 
127.0.0.1:5000:
        Attributes:
                Key1,Key2                                                   : <nil>

This fixes that to show each key independently:

gru --config "${GRU_CONF}" bios get --attributes  Key1,Key2 127.0.0.1:5000 
Asynchronously querying [    1] hosts ... 
127.0.0.1:5000:
        Attributes:
                Key1                                                        : <nil>
                Key2                                                        : <nil>

Issue Type

Risks and Mitigations