[libvirt] [PATCH 3/6] qemu: qmp query-cpu-model-expansion command

Collin L. Walling walling at linux.vnet.ibm.com
Tue Nov 29 20:44:46 UTC 2016



On 11/28/2016 10:46 AM, Jiri Denemark wrote:
>> +    if (!(cpu_props = virJSONValueObjectGetObject(cpu_model, "props")))
> I believe this should be
>
>      if (!(cpu_props = virJSONValueObjectGetArray(cpu_model, "props")))
The JSON data returned by query-cpu-model-expansion doesn't seem to
use an array to represent the props data. The props are returned as
key-value pairs.

Is there some functionality to virJSONValueObjectGetArray that works
with key-value pairs that I might be missing?I couldn't get it
working onmy end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161129/ef54ca95/attachment-0001.htm>


More information about the libvir-list mailing list