Fix project sources retrieval

Change-Id: Ib5a4c14a1d43a75f6b91edba857c0b5efa729730
This commit is contained in:
Ilya Shakhat 2014-12-10 13:35:19 +03:00
parent 48f3ceaffb
commit 6c8cbfc8e8

View File

@ -66,7 +66,8 @@ def _retrieve_project_list_from_sources(project_sources):
def _retrieve_project_list_from_gerrit(project_source):
LOG.info('Retrieving project list from Gerrit')
try:
gerrit = rcs.Gerrit(None, project_source['uri'])
uri = project_source.get('uri') or cfg.CONF.review_uri
gerrit = rcs.Gerrit(None, uri)
key_filename = (project_source.get('ssh_key_filename') or
cfg.CONF.ssh_key_filename)
username = project_source.get('ssh_username') or cfg.CONF.ssh_username