aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli/commands/cli_tier.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-13 10:14:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-13 10:14:00 +0000
commitae6798b7018e609d7a4833599e7915cebc258ac5 (patch)
tree282ef0863bd3d3316ccfd6e20df185e527a5aa01 /functest/cli/commands/cli_tier.py
parent5387e9adab29aa72a0cbdea0615799eccaf6781d (diff)
parentdd168d1587838be11d7a8372f77b16915a3af85b (diff)
Merge "Improve the way of getting env values"
Diffstat (limited to 'functest/cli/commands/cli_tier.py')
-rw-r--r--functest/cli/commands/cli_tier.py6
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):