aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-13 08:45:40 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-13 08:48:13 +0200
commitff0ae3f577311611f8c7ad9ef21370c439e8565b (patch)
treeb9c15bf4aa5a77fccc7e293ca74c0ef378fe2261
parentcb33fa13d1a58dfa52b218e4e5aaf6cfa09b0cae (diff)
Force new project.id when creating new users
Else it raises side effects when both project.id and project.name are defined (see Apex [1]) [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/148/console Change-Id: I98665ed55a55fdd02e25d8ad17b78d84548b0ec8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/core/tenantnetwork.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py
index 348ef7d92..60b747bd2 100644
--- a/functest/core/tenantnetwork.py
+++ b/functest/core/tenantnetwork.py
@@ -86,6 +86,8 @@ class NewProject(object):
osconfig = os_client_config.config.OpenStackConfig()
osconfig.cloud_config[
'clouds']['envvars']['project_name'] = self.project.name
+ osconfig.cloud_config[
+ 'clouds']['envvars']['project_id'] = self.project.id
osconfig.cloud_config['clouds']['envvars']['username'] = self.user.name
osconfig.cloud_config['clouds']['envvars']['password'] = self.password
self.__logger.debug("cloud_config %s", osconfig.cloud_config)