From 2cb99fccfed4f538a9c718ea3dbc466c3f96c517 Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Mon, 31 Oct 2011 15:41:05 -0700 Subject: [PATCH] Project ID always treated as a string. Keystone chokes on authorization if the project id is sent as an integer, so we'll cast it to a unicode string on our end. --- keystoneclient/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneclient/client.py b/keystoneclient/client.py index 7eb9002fb..38638e5e3 100644 --- a/keystoneclient/client.py +++ b/keystoneclient/client.py @@ -44,7 +44,7 @@ class HTTPClient(httplib2.Http): super(HTTPClient, self).__init__(timeout=timeout) self.user = username self.password = password - self.project_id = project_id + self.project_id = unicode(project_id) self.auth_url = auth_url self.version = 'v2.0' self.region_name = region_name