diff options
| author | Andrey Shinkevich | 2020-08-06 21:35:55 +0200 |
|---|---|---|
| committer | Eric Blake | 2020-08-21 15:56:09 +0200 |
| commit | b4e927799cf4a75e4432ab9e94d8f74e906a149b (patch) | |
| tree | 3d97f98d5b4d3f0b702ba56870c99f549791938b /qapi/migration.json | |
| parent | qcow2.py: Introduce '-j' key to dump in JSON format (diff) | |
| download | qemu-b4e927799cf4a75e4432ab9e94d8f74e906a149b.tar.gz qemu-b4e927799cf4a75e4432ab9e94d8f74e906a149b.tar.xz qemu-b4e927799cf4a75e4432ab9e94d8f74e906a149b.zip | |
qcow2_format.py: collect fields to dump in JSON format
As __dict__ is being extended with class members we do not want to
print, add the to_json() method to classes that returns a json-dumpable
object with desired fields and their values. Extend it in subclass when
necessary to print the final dictionary in the JSON output which
follows.
Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <1596742557-320265-10-git-send-email-andrey.shinkevich@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qapi/migration.json')
0 files changed, 0 insertions, 0 deletions
