qmp-shell: Sort by key when pretty-printing
commitfca9d723232a8bc756ca74982ee342f73ebf833c
authorDavid Edmondson <david.edmondson@oracle.com>
Tue, 13 Oct 2020 14:14:14 +0000 (13 15:14 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 27 Oct 2020 10:11:06 +0000 (27 11:11 +0100)
tree30eb88bc89e9e9f03b11bdb6d9c2b42ef484a66a
parent1dc887329a10903940501b43e8c0cc67af7c06d5
qmp-shell: Sort by key when pretty-printing

If the user selects pretty-printing (-p) the contents of any
dictionaries in the output are sorted by key.

Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20201013141414.18398-1-david.edmondson@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qmp/qmp-shell