diff options
author | Zuul <zuul@review.opendev.org> | 2020-05-27 15:44:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-05-27 15:44:26 +0000 |
commit | ba449b938780eb1aa7eb3e578225145fd1fa9b58 (patch) | |
tree | 1dac5bea1a31563fab6a1e72102aaff7c7253140 /zuul | |
parent | ccfeb49fcc5c06416461d03bace1f239924059f5 (diff) | |
parent | 60698b67b4410b422b1aba04a3eb74da243f404c (diff) | |
download | zuul-ba449b938780eb1aa7eb3e578225145fd1fa9b58.tar.gz |
Merge "Gitlab - avoid duplicates in the cache"
Diffstat (limited to 'zuul')
-rw-r--r-- | zuul/driver/gitlab/gitlabconnection.py | 2 |
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)) |