commit | 69f19ffa47022e2113f6f8cf4af96b279adf4528 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Thu Nov 04 09:28:25 2021 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Mon Nov 08 11:25:20 2021 -0600 |
tree | 76e0c5f3379859f6420c0f002f1170edfc7a3e7f | |
parent | a7fcf3e0a106ef4970a57120ebb40f0ef9cc3578 [diff] |
control: fanctl query dump: Deal with arrays The existing fanctl query_dump code was expecting the JSON it was dealing with to be an object and not an array. When the JSON was an array it would convert it into an object, which could change the entry ordering. To fix it, specifically check for the array type and use the '--name' parameter to match on text in the array. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Id1dc1c5b3516c5ffe00484012d72464e1058ec8e