diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-12 11:22:06 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-12 11:22:06 +0100 |
commit | e7eee58cd132f4f68cdf3e319bae6b0283fd2678 (patch) | |
tree | ca0dc4317c0b2c8ca5eb2e79597c36dde86c22cc /functest/utils/openstack_utils.py | |
parent | 8d83b91049f4b2f3da6b77d39105a2213a8ce690 (diff) |
Export env vars via os.environ in test_openstack_utils.py
CONST shouldn't be used for getting/setting env vars.
It adds complexity and may raise side effects.
Change-Id: I8319748dd2f0abb95b82a2f65191cac8ccba7f5e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/utils/openstack_utils.py')
-rw-r--r-- | functest/utils/openstack_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index f7069a63..b779997c 100644 --- a/functest/utils/openstack_utils.py +++ b/functest/utils/openstack_utils.py @@ -1320,7 +1320,7 @@ def get_domain_id(keystone_client, domain_name): def create_tenant(keystone_client, tenant_name, tenant_description): try: if is_keystone_v3(): - domain_name = CONST.__getattribute__('OS_PROJECT_DOMAIN_NAME') + domain_name = os.environ['OS_PROJECT_DOMAIN_NAME'] domain_id = get_domain_id(keystone_client, domain_name) tenant = keystone_client.projects.create( name=tenant_name, |