summaryrefslogtreecommitdiff
path: root/glanceclient/exc.py
diff options
context:
space:
mode:
authorrahulram <rahurama@cisco.com>2015-08-26 11:45:07 -0700
committerrahulram <rahurama@cisco.com>2015-08-26 13:41:09 -0700
commit22ce8451a86079c55c19990878068607b0852ee7 (patch)
tree20a800de31135e7d6f84bd7c33891a8fe815a502 /glanceclient/exc.py
parentf25eb5e114bfa7eb82d3bb8b179840af03d43d8f (diff)
downloadpython-glanceclient-22ce8451a86079c55c19990878068607b0852ee7.tar.gz
Fix Typos in comments
Change-Id: Ib66ec89f6e556093ab00d3f7fb8ad0f3d9912461
Diffstat (limited to 'glanceclient/exc.py')
-rw-r--r--glanceclient/exc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/exc.py b/glanceclient/exc.py
index 06a9126..29189e4 100644
--- a/glanceclient/exc.py
+++ b/glanceclient/exc.py
@@ -155,7 +155,7 @@ def from_response(response, body=None):
"""Return an instance of an HTTPException based on httplib response."""
cls = _code_map.get(response.status_code, HTTPException)
if body and 'json' in response.headers['content-type']:
- # Iterate over the nested objects and retreive the "message" attribute.
+ # Iterate over the nested objects and retrieve the "message" attribute.
messages = [obj.get('message') for obj in response.json().values()]
# Join all of the messages together nicely and filter out any objects
# that don't have a "message" attr.