Gitlab - allow to use the 'zuul enqueue' command
- set 'url' in order to avoid "'NoneType' object is not iterable" exception - fix value of 'uris': - use a list of URLs, not a list of characters - remove scheme from the URL Change-Id: Iaa0197eb290a9e21aa63eb65a1c8a677abf8298b
This commit is contained in:
parent
931eac4030
commit
23f8e5df8b
|
@ -388,8 +388,8 @@ class GitlabConnection(BaseConnection):
|
|||
change.number = number
|
||||
# patchset is the tips commit of the PR
|
||||
change.patchset = patchset
|
||||
change.url = url
|
||||
change.uris = list(url)
|
||||
change.url = url or self.getPullUrl(project.name, number)
|
||||
change.uris = [change.url.split('://', 1)[-1]] # remove scheme
|
||||
self._change_cache[key] = change
|
||||
try:
|
||||
log.debug("Getting change mr#%s from project %s" % (
|
||||
|
|
Loading…
Reference in New Issue