aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/tempest/tempest.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest/tempest.py')
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index 7fb24f239..d51337a1e 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -366,7 +366,9 @@ class TempestResourcesManager(object):
self.guid = '-' + str(uuid.uuid4())
self.cloud = os_client_config.make_shade()
LOGGER.debug("cloud: %s", self.cloud)
- self.domain = self.cloud.auth.get("project_domain_name", "Default")
+ self.domain = self.cloud.get_domain(
+ name_or_id=self.cloud.auth.get(
+ "project_domain_name", "Default"))
LOGGER.debug("domain: %s", self.domain)
self.project = None
self.user = None
@@ -383,7 +385,7 @@ class TempestResourcesManager(object):
getattr(config.CONF, 'tempest_identity_tenant_name') + self.guid,
description=getattr(
config.CONF, 'tempest_identity_tenant_description'),
- domain_id=self.domain)
+ domain_id=self.domain.id)
LOGGER.debug("project: %s", self.project)
def _create_user(self):
@@ -394,7 +396,7 @@ class TempestResourcesManager(object):
password=getattr(config.CONF, 'tempest_identity_user_password'),
default_project=getattr(
config.CONF, 'tempest_identity_tenant_name') + self.guid,
- domain_id=self.domain)
+ domain_id=self.domain.id)
LOGGER.debug("user: %s", self.user)
def _create_network(self):