qapi: ensure stable sort ordering when checking QAPI entities
commitf7a5376d4b667cf6c83c1d640e32d22456d7b5ee
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Jan 2018 13:42:10 +0000 (16 13:42 +0000)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Feb 2018 21:53:54 +0000 (5 19:53 -0200)
treeafd1bfd68218750582fae3d96a9cddd31eb37bd1
parent46ec4fcea95204a8e5bab9295cbfaa3606d78dc9
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>
scripts/qapi.py