From 485fb3bfe34cb39c211c49e871085dbc41f15bd6 Mon Sep 17 00:00:00 2001 From: Eldin Didic <25496156+creativestate@users.noreply.github.com> Date: Mon, 13 Nov 2023 08:51:02 +1100 Subject: [PATCH] Fix Backup Modification Assertion Errors --- mysqloperator/controller/backup/backup_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysqloperator/controller/backup/backup_api.py b/mysqloperator/controller/backup/backup_api.py index f4c3dc6..37e582a 100644 --- a/mysqloperator/controller/backup/backup_api.py +++ b/mysqloperator/controller/backup/backup_api.py @@ -103,6 +103,8 @@ def __str__(self) -> str: return f"Object BackupProfile name={self.name} dumpInstance={self.dumpInstance} snapshot={self.snapshot} podAnnotations={self.podAnnotations} podLabels={self.podLabels}" def __eq__(self, other: 'BackupProfile') -> bool: + if other is None: + return False assert isinstance(other, BackupProfile) return (self.name == other.name and \ self.dumpInstance == other.dumpInstance and \