aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-03-21 10:08:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-21 10:08:50 +0000
commit9d5bb4882c3a1cce0ecb343573ae3d109f1f9076 (patch)
tree9de4f17db3b533abdbd4bcee4cbf4bf3c43a7f90
parent19dd4962baca5d7103fe0de55d415e175dbe35e4 (diff)
parent605b4c00a3253f9d4dee97848fee7ae7f50797a8 (diff)
Merge "correct a mistake for os.getenv()" into stable/danube
-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 e666894..9299f8c 100644
--- a/qtip/util/env.py
+++ b/qtip/util/env.py
@@ -193,7 +193,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:
with open(self.keypair['public'], 'r') as f: