Add missing tenant_id to Keystone init

KeystoneAuthV2 takes a tenant_id param that was not being used for
anything.  This passes it along to the keystoneclient.

Co-Authored-By: Anderson Mesquita <andersonvom@gmail.com>
Change-Id: I2cb622d4035600c09512fd3824e03da1fe5f9738
This commit is contained in:
Richard Lee
2014-03-06 17:06:26 -06:00
committed by Anderson Mesquita
parent 11f54097b7
commit ecc4f2eb7b
2 changed files with 3 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ class KeystoneAuthV2(AuthPluginBase):
self._keystone = keystone or ksclient.Client(username=username,
password=password,
tenant_name=tenant_name,
tenant_id=tenant_id,
auth_url=auth_url,
insecure=insecure)
self._barbican_url = None

View File

@@ -29,11 +29,13 @@ class WhenTestingKeystoneAuthentication(unittest.TestCase):
self.auth_url = 'https://www.yada.com'
self.username = 'user'
self.password = 'pw'
self.tenant_name = 'tenant'
self.tenant_id = '1234'
self.keystone_auth = auth.KeystoneAuthV2(auth_url=self.auth_url,
username=self.username,
password=self.password,
tenant_name=self.tenant_name,
tenant_id=self.tenant_id,
keystone=
self.keystone_client)