+ 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.