Skip to content

Commit

Permalink
Make VMCollection return sorted VM list on iteration
Browse files Browse the repository at this point in the history
This makes it much easier to write tests...
  • Loading branch information
marmarek committed May 25, 2017
1 parent 9cdf9a0 commit 93d7249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesadmin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __delitem__(self, key):

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):
Expand Down

0 comments on commit 93d7249

Please sign in to comment.