summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-05-27 15:44:26 +0000
committerGerrit Code Review <review@openstack.org>2020-05-27 15:44:26 +0000
commitba449b938780eb1aa7eb3e578225145fd1fa9b58 (patch)
tree1dac5bea1a31563fab6a1e72102aaff7c7253140
parentccfeb49fcc5c06416461d03bace1f239924059f5 (diff)
parent60698b67b4410b422b1aba04a3eb74da243f404c (diff)
downloadzuul-ba449b938780eb1aa7eb3e578225145fd1fa9b58.tar.gz
Merge "Gitlab - avoid duplicates in the cache"
-rw-r--r--zuul/driver/gitlab/gitlabconnection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/driver/gitlab/gitlabconnection.py b/zuul/driver/gitlab/gitlabconnection.py
index 363281fec..9fb0aeb77 100644
--- a/zuul/driver/gitlab/gitlabconnection.py
+++ b/zuul/driver/gitlab/gitlabconnection.py
@@ -377,7 +377,7 @@ class GitlabConnection(BaseConnection):
def _getChange(self, project, number, patchset=None,
refresh=False, url=None, event=None):
log = get_annotated_logger(self.log, event)
- key = (project.name, number, patchset)
+ key = (project.name, str(number), str(patchset))
change = self._change_cache.get(key)
if change and not refresh:
log.debug("Getting change from cache %s" % str(key))