vm/adminvm: make AdminVM sortable

One more thing gone during changing AdminVM base class.
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-14 04:01:07 +02:00
parent 86a935e779
commit e4d285d479
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 []