Show the unknown auth stratey in neutron client

This can help unveil some useful information
to be used during a troubleshooting process.

Change-Id: I23657988fe31f5c552f17d6963de89c608273b44
Closes-bug: 1297309
This commit is contained in:
armando-migliaccio 2014-03-25 07:19:33 -07:00
parent debd91bb4a
commit 54d15e7ec0

@ -217,7 +217,8 @@ class HTTPClient(httplib2.Http):
def authenticate(self):
if self.auth_strategy != 'keystone':
raise exceptions.Unauthorized(message=_('Unknown auth strategy'))
err_msg = _('Unknown auth strategy: %s') % self.auth_strategy
raise exceptions.Unauthorized(message=err_msg)
if self.tenant_id:
body = {'auth': {'passwordCredentials':
{'username': self.username,