From eb793907cee64bbe2519040559b04d47652cabf0 Mon Sep 17 00:00:00 2001 From: Samuel Bartel Date: Tue, 16 Jan 2018 10:12:16 +0100 Subject: Update set of region identity attribut Use OS_REGION_NAME environment variable if defined Change-Id: Ifcdfc468fa4931ab62ac0f3ead103e15af7c0de6 Signed-off-by: Samuel Bartel --- functest/opnfv_tests/openstack/tempest/conf_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functest/opnfv_tests/openstack/tempest') diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 03e9631a9..e61ab8138 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -272,7 +272,8 @@ def configure_tempest_update_params(tempest_conf_file, image_id=None, config.set('compute', 'min_compute_nodes', compute_cnt) config.set('compute-feature-enabled', 'live_migration', True) - config.set('identity', 'region', 'RegionOne') + config.set('identity', 'region', + CONST.__getattribute__('OS_REGION_NAME')) identity_api_version = os.getenv( "OS_IDENTITY_API_VERSION", os.getenv("IDENTITY_API_VERSION")) if (identity_api_version == '3'): -- cgit 1.2.3-korg