mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 02:25:41 +00:00
Make container objects comparable
This commit is contained in:
1 parent
3807d26f77
commit
862cb47da9
1 file changed
+3
@@ -131,6 +131,9 @@ class Container:
|
||||
|
||||
return value.split(',')
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.id == other.id
|
||||
|
||||
|
||||
class Mount:
|
||||
"""Represents a volume mount (volume or bind)"""
|
||||
|
||||
Reference in new issue
Block a user