mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 10:35:40 +00:00
More robust container comparator
This commit is contained in:
1 parent
ba642eeb4b
commit
3dc3ce5eb9
2 files changed
+7
No files matched your search
@@ -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