summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--barbicanclient/common/auth.py1
-rw-r--r--barbicanclient/test/common/test_auth.py2
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)