Merge "Use message when creating Unauthorized exception"

This commit is contained in:
Jenkins
2014-02-13 03:42:59 +00:00
committed by Gerrit Code Review

View File

@ -268,7 +268,7 @@ class Auth(controller.V2Controller):
user_id=user_id,
password=password)
except AssertionError as e:
raise exception.Unauthorized(e)
raise exception.Unauthorized(e.args[0])
metadata_ref = {}
tenant_id = self._get_project_id_from_auth(auth)