From 43ef244eaaaa81171e23a977cd5387723efd0ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 6 Jul 2017 21:53:45 +0200 Subject: [PATCH] vm: make QubesVM objects hashable --- qubesadmin/vm/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubesadmin/vm/__init__.py b/qubesadmin/vm/__init__.py index 67eb1f1..11abc2a 100644 --- a/qubesadmin/vm/__init__.py +++ b/qubesadmin/vm/__init__.py @@ -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.