]> xenbits.xensource.com Git - libvirt.git/commit
util: json: Don't remove the 'file' subobject when deflattening
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jun 2017 16:42:07 +0000 (18:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jul 2017 12:10:31 +0000 (14:10 +0200)
commitf43b7d60d8e03c4b284a7217ea59c2aba5c2ca83
treeec206da0a62c0f8a9ff172fe9258a81fd1e55153
parentde75de7c977b222c3c33f5dc5268d9e07fa97b7e
util: json: Don't remove the 'file' subobject when deflattening

Currently the function would deflatten the object by dropping the 'file'
prefix from the attributes. This does not really scale well or adhere to
the documentation.

Until we refactor the worker to properly deflatten everything we at
least simulate it by adding the "file" wrapper object back.
src/util/virjson.c
src/util/virstoragefile.c