aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-17 08:40:17 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-17 08:40:17 +0000
commit62516af2321faa78a85ebcc9c09faf2f38fff65b (patch)
treedfd94b9e4b45fbfa1e80a318f36b2b28f64893a6
parent9a2c5b0de21a9541d4ad2728e9c64e8d97d66dd6 (diff)
parentb07a423d0fb1b6bfbdb851195097d6fda38bc20e (diff)
Merge "correct a mistake for os.getenv()"
-rw-r--r--qtip/util/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtip/util/env.py b/qtip/util/env.py
index d00320c4..ab9ffa7a 100644
--- a/qtip/util/env.py
+++ b/qtip/util/env.py
@@ -192,7 +192,7 @@ class AnsibleEnvSetup(object):
def cleanup(self):
CI_DEBUG = os.getenv('CI_DEBUG')
- if CI_DEBUG:
+ if CI_DEBUG is not None and CI_DEBUG.lower() == 'true':
logger.info("DEBUG Mode: please do cleanup by manual.")
else:
for ip in self.host_ip_list: