mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2026-06-19 11:12:39 +02:00
fix: ensure consistent ordering
This commit is contained in:
@@ -47,6 +47,10 @@ class VM:
|
||||
def __eq__(self, other):
|
||||
return self.hostname == other.hostname
|
||||
|
||||
def __gt__(self, other):
|
||||
if self.hostname != other.hostname:
|
||||
return self.hostname > other.hostname
|
||||
return len(str(self.__dict__)) > len(str(other.__dict__))
|
||||
|
||||
def dumpStreamComponents(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user