Explorar el Código

Make VMCollection return sorted VM list on iteration

This makes it much easier to write tests...
Marek Marczykowski-Górecki hace 7 años
padre
commit
93d7249ef0
Se han modificado 1 ficheros con 1 adiciones y 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):