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:
committed by
Anderson Mesquita
parent
11f54097b7
commit
ecc4f2eb7b
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user