Explorar o código

Make VMCollection return sorted VM list on iteration

This makes it much easier to write tests...
Marek Marczykowski-Górecki %!s(int64=7) %!d(string=hai) anos
pai
achega
93d7249ef0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):