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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 on
my end.
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux