]> xenbits.xensource.com Git - libvirt.git/commitdiff
hyperv: Sync generator output between python versions
authorCole Robinson <crobinso@redhat.com>
Mon, 19 Mar 2018 19:32:34 +0000 (15:32 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 20 Mar 2018 13:44:35 +0000 (09:44 -0400)
Yet another dependency on dict() hash ordering

Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/hyperv/hyperv_wmi_generator.py

index 0dcd9e4383f98be2cd10c47e8e979cbfa515fc77..ceeb263660d547d6cb3ddf28cdba52a7fdc86f5e 100755 (executable)
@@ -271,7 +271,7 @@ class WmiClass:
 
         # isolate those that are common for all and keep track of their postions
         pos = 0
-        for key in property_info:
+        for key in sorted(property_info):
             info = property_info[key]
             # exists in all class versions
             if info[1] == num_classes: