Ensure that optime annotation is a string (#2291)

Fixes #2290
This commit is contained in:
haslersn
2022-05-10 09:20:39 +02:00
committed by GitHub
parent aa0cd48060
commit 7a2d6dc3c0
+1 -1
View File
@@ -1060,7 +1060,7 @@ class Kubernetes(AbstractDCS):
if kind and (kind.metadata.annotations or {}).get(self._LEADER) == self._name:
annotations = {self._LEADER: None}
if last_lsn:
annotations[self._OPTIME] = last_lsn
annotations[self._OPTIME] = str(last_lsn)
self.patch_or_create(self.leader_path, annotations, kind.metadata.resource_version, True, False, [])
self.reset_cluster()