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:
@@ -217,7 +217,8 @@ class HTTPClient(httplib2.Http):
|
|||||||
|
|
||||||
def authenticate(self):
|
def authenticate(self):
|
||||||
if self.auth_strategy != 'keystone':
|
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:
|
if self.tenant_id:
|
||||||
body = {'auth': {'passwordCredentials':
|
body = {'auth': {'passwordCredentials':
|
||||||
{'username': self.username,
|
{'username': self.username,
|
||||||
|
|||||||
Reference in New Issue
Block a user