From a2c1165dfa22e5645eff20d8758ead07b638ccf5 Mon Sep 17 00:00:00 2001 From: vitikkan Date: Wed, 14 Sep 2016 07:31:58 +0300 Subject: Added missing parameter into logger warning message Missing parameter prevented using of customer defined installer type when executing "functest env prepare" command. JIRA: FUNCTEST-467 Change-Id: I69b69fa43584ec7ae4e4d8925f99624711131ef9 Signed-off-by: vitikkan --- ci/prepare_env.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/prepare_env.py b/ci/prepare_env.py index 63a0ad4a..6b1babaa 100755 --- a/ci/prepare_env.py +++ b/ci/prepare_env.py @@ -89,10 +89,11 @@ def check_env_variables(): logger.warning("The env variable 'INSTALLER_TYPE' is not defined.") CI_INSTALLER_TYPE = "undefined" else: - if os.getenv('INSTALLER_TYPE') not in INSTALLERS: + if CI_INSTALLER_TYPE not in INSTALLERS: logger.warning("INSTALLER_TYPE=%s is not a valid OPNFV installer. " - "Available OPNFV Installers are : %s." - "Setting INSTALLER_TYPE=undefined." % INSTALLERS) + "Available OPNFV Installers are : %s. " + "Setting INSTALLER_TYPE=undefined." + % (CI_INSTALLER_TYPE, INSTALLERS)) CI_INSTALLER_TYPE = "undefined" else: logger.info(" INSTALLER_TYPE=%s" % CI_INSTALLER_TYPE) -- cgit 1.2.3-korg