From 54d15e7ec0a0347aa6243cb15502508cb6f1ea29 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Tue, 25 Mar 2014 07:19:33 -0700 Subject: [PATCH] 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 --- neutronclient/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutronclient/client.py b/neutronclient/client.py index a8f8d78..cdc0fb2 100644 --- a/neutronclient/client.py +++ b/neutronclient/client.py @@ -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,