]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: ensure stable sort ordering when checking QAPI entities
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Jan 2018 13:42:10 +0000 (13:42 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:07 +0000 (20:45 -0500)
commit8bbb76e05023bfa64e197475a072e599d046b3ba
tree6ffbc8ebc19d40d6f6c1d9e3b4a0d121a7df60cb
parent6622e948976c02eff20c174a2d3b5517fe00afca
qapi: ensure stable sort ordering when checking QAPI entities

Some early python 3.x versions will have different default
ordering when calling the 'values()' method on a dict, compared
to python 2.x and later 3.x versions. Explicitly sort the items
to get a stable ordering.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20180116134217.8725-8-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit f7a5376d4b667cf6c83c1d640e32d22456d7b5ee)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
scripts/qapi.py