Revert "Repo: fall back to http, if ssh connection fails for http repos"

This reverts commit 488bf092d5.

Issue 230

Change-Id: I3a5725301f576e1a2ac499cb6daa631895115640
This commit is contained in:
Dan Willemsen 2016-09-22 16:39:06 +00:00
parent 40d3952270
commit 16889ba43d

View File

@ -643,10 +643,7 @@ class Remote(object):
self._review_url = http_url self._review_url = http_url
else: else:
host, port = info.split() host, port = info.split()
if _open_ssh(host, port):
self._review_url = self._SshReviewUrl(userEmail, host, port) self._review_url = self._SshReviewUrl(userEmail, host, port)
else:
self._review_url = http_url
except urllib.error.HTTPError as e: except urllib.error.HTTPError as e:
raise UploadError('%s: %s' % (self.review, str(e))) raise UploadError('%s: %s' % (self.review, str(e)))
except urllib.error.URLError as e: except urllib.error.URLError as e: