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.
This commit is contained in:
Gabriel Hurley
2011-10-31 15:41:05 -07:00
parent cbaa587d62
commit 2cb99fccfe

View File

@@ -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