aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashishk1994 <ashishk.iiit@gmail.com>2016-12-20 20:59:49 +0530
committerashishk1994 <ashishk.iiit@gmail.com>2016-12-20 21:25:41 +0530
commit52c088c85470057ffc4f974a98b74a9f6ec62f40 (patch)
tree55a0fe503c5a484db24a3e6c4d04f0a84134fe51
parentb69a7d6b3cbcceedb0f1f37f736a593fd77fc0be (diff)
Bugfix in passing parameters to logger_debug.
JIRA: FUNCTEST-675 Change-Id: I342d51391323dd1ffe516d8dbc13b2d543374a3e Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
-rwxr-xr-xfunctest/ci/prepare_env.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/ci/prepare_env.py b/functest/ci/prepare_env.py
index 3a99d3bac..41cbbe098 100755
--- a/functest/ci/prepare_env.py
+++ b/functest/ci/prepare_env.py
@@ -27,6 +27,8 @@ import functest.utils.functest_utils as ft_utils
import functest.utils.openstack_utils as os_utils
import functest.utils.functest_constants as ft_constants
+from opnfv.utils import constants as opnfv_constants
+
actions = ['start', 'check']
parser = argparse.ArgumentParser()
parser.add_argument("action", help="Possible actions are: "
@@ -136,7 +138,9 @@ def source_rc_file():
if ft_constants.CI_INSTALLER_TYPE not in ft_constants.INSTALLERS:
logger.error("Cannot fetch credentials. INSTALLER_TYPE=%s is "
"not a valid OPNFV installer. Available "
- "installers are : %s." % ft_constants.INSTALLERS)
+ "installers are : %s." %
+ (ft_constants.CI_INSTALLER_TYPE,
+ opnfv_constants.INSTALLERS))
sys.exit("Wrong INSTALLER_TYPE.")
cmd = ("/home/opnfv/repos/releng/utils/fetch_os_creds.sh "