mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 06:35:24 +00:00
More robust container comparator
This commit is contained in:
@@ -132,6 +132,12 @@ class Container:
|
||||
return value.split(',')
|
||||
|
||||
def __eq__(self, other):
|
||||
if other is None:
|
||||
return False
|
||||
|
||||
if not isinstance(other, Container):
|
||||
return False
|
||||
|
||||
return self.id == other.id
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user