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
1 file changed