fix missing elements in string formatting

Sem-Ver: bugfix
Change-Id: I70de0cd4d5c4cded7e9c3a303d178b3f03333fa6
This commit is contained in:
Vincent Llorens 2017-02-20 10:33:16 +01:00
parent 78eb46a608
commit f1e951c927

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: