Merge "fix missing elements in string formatting"

This commit is contained in:
Jenkins 2017-02-20 11:17:31 +00:00 committed by Gerrit Code Review
commit 6485fa60e7
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ class KeystoneClient(object):
response = self.getResource("/projects/%s" % id, "GET")
except requests.exceptions.HTTPError as ex:
response = ex.response.json()
raise Exception("error on retrieving the project (id=%r, "
raise Exception("error on retrieving the project (id=%r): %s"
% (id, response["error"]["message"]))
if response:
@ -509,7 +509,7 @@ class KeystoneClient(object):
response = ex.response.json()
raise Exception("error on retrieving the endpoints list"
"(serviceId=%r): %s"
% response["error"]["message"])
% (service_id, response["error"]["message"]))
if endpoints:
for endpoint in endpoints: