Merge "Change "Connection refused" to "Connection error""

This commit is contained in:
Jenkins 2014-08-03 18:41:37 +00:00 committed by Gerrit Code Review
commit c9e7818f3f

@ -314,8 +314,7 @@ class HTTPClient(CinderClientMixin):
else:
raise
except requests.exceptions.ConnectionError as e:
# Catch a connection refused from requests.request
self._logger.debug("Connection refused: %s" % e)
self._logger.debug("Connection error: %s" % e)
if attempts > self.retries:
msg = 'Unable to establish connection: %s' % e
raise exceptions.ConnectionError(msg)