vm: make QubesVM objects hashable

This commit is contained in:
Marek Marczykowski-Górecki 2017-07-06 21:53:45 +02:00
parent 8f7b0009db
commit 43ef244eaa
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -86,6 +86,9 @@ class QubesVM(qubesadmin.base.PropertyHolder):
return self.name == other
return NotImplemented
def __hash__(self):
return hash(self.name)
def start(self):
'''
Start domain.