Make container objects comparable
This commit is contained in:
parent
3807d26f77
commit
862cb47da9
|
@ -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)"""
|
||||||
|
|
Loading…
Reference in New Issue