diff options
author | Richard Lee <rblee88@gmail.com> | 2014-03-06 17:06:26 -0600 |
---|---|---|
committer | Anderson Mesquita <andersonvom@gmail.com> | 2014-03-07 10:59:19 -0600 |
commit | ecc4f2eb7b8a930d1059cdd5ae2c99e4d4d4df5e (patch) | |
tree | ffe4ba738d31a680a34edf546b90b158b49937b9 | |
parent | 11f54097b7410f0345fe2b5d5d98957e9662a76a (diff) | |
download | python-barbicanclient-ecc4f2eb7b8a930d1059cdd5ae2c99e4d4d4df5e.tar.gz |
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
-rw-r--r-- | barbicanclient/common/auth.py | 1 | ||||
-rw-r--r-- | barbicanclient/test/common/test_auth.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/barbicanclient/common/auth.py b/barbicanclient/common/auth.py index 4313486..ff26ddb 100644 --- a/barbicanclient/common/auth.py +++ b/barbicanclient/common/auth.py @@ -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 diff --git a/barbicanclient/test/common/test_auth.py b/barbicanclient/test/common/test_auth.py index bc1e079..c2ef0ff 100644 --- a/barbicanclient/test/common/test_auth.py +++ b/barbicanclient/test/common/test_auth.py @@ -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) |