Make VMCollection return sorted VM list on iteration
This makes it much easier to write tests...
This commit is contained in:
parent
9cdf9a0e60
commit
93d7249ef0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user