Merge "Accept 201 status code on POST"

This commit is contained in:
Jenkins 2013-03-01 23:51:09 +00:00 committed by Gerrit Code Review
commit 413bff3e11

@ -240,7 +240,8 @@ class HTTPClient(object):
We may get redirected to another site, fail or actually get
back a service catalog with a token and our endpoints."""
if resp.status_code == 200: # content must always present
# content must always present
if resp.status_code == 200 or resp.status_code == 201:
try:
self.auth_url = url
self.service_catalog = \