diff options
author | 2018-02-12 16:27:54 +0100 | |
---|---|---|
committer | 2018-02-13 07:44:31 +0100 | |
commit | dd168d1587838be11d7a8372f77b16915a3af85b (patch) | |
tree | 3e2078cfb6ac20d78a13d1c74565e2c5b4e51496 /functest/cli/commands/cli_tier.py | |
parent | 46f1037fe35bc249dca868b363107bc1bcd70469 (diff) |
Improve the way of getting env values
It simply reads env vars instead of calling CONST.__getattribute__()
Change-Id: If3137f3cfb9f3102388988a82393b9b2f4e99f60
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/cli/commands/cli_tier.py')
-rw-r--r-- | functest/cli/commands/cli_tier.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/cli/commands/cli_tier.py b/functest/cli/commands/cli_tier.py index 7aa3f714..933d8cd6 100644 --- a/functest/cli/commands/cli_tier.py +++ b/functest/cli/commands/cli_tier.py @@ -8,12 +8,12 @@ # pylint: disable=missing-docstring +import os import pkg_resources import click from functest.ci import tier_builder -from functest.utils.constants import CONST from functest.utils import functest_utils @@ -21,8 +21,8 @@ class Tier(object): def __init__(self): self.tiers = tier_builder.TierBuilder( - CONST.__getattribute__('INSTALLER_TYPE'), - CONST.__getattribute__('DEPLOY_SCENARIO'), + os.environ['INSTALLER_TYPE'], + os.environ['DEPLOY_SCENARIO'], pkg_resources.resource_filename('functest', 'ci/testcases.yaml')) def list(self): |