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:
Pierre-Louis Bonicoli 2020-05-17 05:31:20 +02:00
parent 931eac4030
commit 23f8e5df8b
No known key found for this signature in database
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 2 additions and 2 deletions

View File

@ -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" % (