From a093e6d074872c761dda3ab84701e35b019c4204 Mon Sep 17 00:00:00 2001 From: Ian Main Date: Wed, 30 May 2012 10:46:15 -0700 Subject: [PATCH] Fix auth failed exception handler This patch fixes the auth failed exception handler so that we get back a meaningful result when authentication fails. Change-Id: I2f37daed3890fd685fa6f701938b675460e76b0c Signed-off-by: Ian Main --- heat/common/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heat/common/client.py b/heat/common/client.py index 5491b8f3fb..be465c85b5 100644 --- a/heat/common/client.py +++ b/heat/common/client.py @@ -529,9 +529,9 @@ class BaseClient(object): elif status_code in self.REDIRECT_RESPONSE_CODES: raise exception.RedirectException(res.getheader('Location')) elif status_code == httplib.UNAUTHORIZED: - raise exception.NotAuthorized(res.read()) + raise exception.NotAuthorized() elif status_code == httplib.FORBIDDEN: - raise exception.NotAuthorized(res.read()) + raise exception.NotAuthorized() elif status_code == httplib.NOT_FOUND: raise exception.NotFound(res.read()) elif status_code == httplib.CONFLICT: