Fix hardcoded value 47/58947/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 24 Jun 2018 08:44:12 +0000 (10:44 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 24 Jun 2018 08:44:12 +0000 (10:44 +0200)
Change-Id: I070e1404a4b0dba4733f38e2de32e1fa77254ddc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/core/tenantnetwork.py

index c41f470..7d9a330 100644 (file)
@@ -51,7 +51,8 @@ class NewProject(object):
         assert self.case_name
         password = str(uuid.uuid4())
         domain = self.orig_cloud.get_domain(
-            name_or_id="functest")
+            name_or_id=self.orig_cloud.auth.get(
+                "project_domain_name", "Default"))
         self.project = self.orig_cloud.create_project(
             name='{}-project_{}'.format(self.case_name, self.guid),
             description="Created by OPNFV Functest: {}".format(