[PATCH] hyperv: Sync generator output between python versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yet another dependency on dict() hash ordering

Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
---
 src/hyperv/hyperv_wmi_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hyperv/hyperv_wmi_generator.py b/src/hyperv/hyperv_wmi_generator.py
index d54810211..6582fe1f1 100755
--- a/src/hyperv/hyperv_wmi_generator.py
+++ b/src/hyperv/hyperv_wmi_generator.py
@@ -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:
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux