summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-02-22 13:06:27 +0000
committerGerrit Code Review <review@openstack.org>2023-02-22 13:06:27 +0000
commit48ad958bb4e37e165b422daaaefb59d0ab708306 (patch)
treea412c41f1ccf56f83889ba0543aa4fdccdeb394d
parentf653eecb97edfcb78ba8951eaa9576141ddc452e (diff)
parentd7c97f81350336277e69a6b5c79aebdbc31ac265 (diff)
downloadzuul-48ad958bb4e37e165b422daaaefb59d0ab708306.tar.gz
Merge "[gitlab driver] fix "'EnqueueEvent' object has no attribute 'change_url'""
-rw-r--r--zuul/driver/gitlab/gitlabconnection.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/zuul/driver/gitlab/gitlabconnection.py b/zuul/driver/gitlab/gitlabconnection.py
index 40cac241a..1515db8df 100644
--- a/zuul/driver/gitlab/gitlabconnection.py
+++ b/zuul/driver/gitlab/gitlabconnection.py
@@ -607,17 +607,12 @@ class GitlabConnection(ZKChangeCacheMixin, ZKBranchCacheMixin, BaseConnection):
return change
project = self.source.getProject(change_key.project_name)
if not change:
- if not event:
- self.log.error("Change %s not found in cache and no event",
- change_key)
- if event:
- url = event.change_url
change = MergeRequest(project.name)
change.project = project
change.number = number
# patch_number is the tips commit SHA of the MR
change.patchset = change_key.revision
- change.url = url or self.getMRUrl(project.name, number)
+ change.url = self.getMRUrl(project.name, number)
change.uris = [change.url.split('://', 1)[-1]] # remove scheme
log.debug("Getting change mr#%s from project %s" % (