mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
qemu-replies-tool: Dump also query string for optional members
The query language allows querying whether a member is optional by using the '*' "operator" but the dumper script didn't output those query strings. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
29d77d1a64
commit
ba4b9a7d8f
@ -336,6 +336,10 @@ def dump_qmp_probe_strings_iter(name, cur, trace, schema):
|
||||
membpath = "%s/%s" % (cur, memb['name'])
|
||||
print(membpath)
|
||||
|
||||
# object members can be queried for optionality by '*'
|
||||
if 'default' in memb:
|
||||
print("%s/*%s" % (cur, memb['name']))
|
||||
|
||||
for f in memb.get('features', []):
|
||||
print('%s/$%s' % (membpath, f))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user