Browse Source

Make VMCollection return sorted VM list on iteration

This makes it much easier to write tests...
Marek Marczykowski-Górecki 7 năm trước cách đây
mục cha
commit
93d7249ef0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qubesadmin/app.py

+ 1 - 1
qubesadmin/app.py

@@ -101,7 +101,7 @@ class VMCollection(object):
 
     def __iter__(self):
         self.refresh_cache()
-        for vm in self._vm_list:
+        for vm in sorted(self._vm_list):
             yield self[vm]
 
     def keys(self):