Make container objects comparable

This commit is contained in:
Einar Forselv 2019-04-18 05:44:02 +02:00
parent 3807d26f77
commit 862cb47da9
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ class Container:
return value.split(',') return value.split(',')
def __eq__(self, other):
return self.id == other.id
class Mount: class Mount:
"""Represents a volume mount (volume or bind)""" """Represents a volume mount (volume or bind)"""