Skip to content

Commit

Permalink
vm/adminvm: make AdminVM sortable
Browse files Browse the repository at this point in the history
One more thing gone during changing AdminVM base class.
  • Loading branch information
marmarek committed Jun 20, 2017
1 parent 86a935e commit e4d285d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qubes/vm/adminvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class AdminVM(qubes.vm.BaseVM):
def __str__(self):
return self.name

def __lt__(self, other):
# order dom0 before anything
return self.name != other.name

@property
def attached_volumes(self):
return []
Expand Down

0 comments on commit e4d285d

Please sign in to comment.