summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Yu <Gabriel.yuyang@huawei.com>2018-03-01 14:22:37 +0800
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2018-03-13 15:09:38 +0000
commitb1550810eb2ed1203efb55ecdbc8dd7865274340 (patch)
tree26008c5c912f2fff942be9326cb4f51d5b2bda3c
parent5056e9d46bffebc98bef05eb12e05f25f5f7811e (diff)
roll back the bug-fix for source method
JIRA: BOTTLENECK-222 It seems the issue related to environments. Just roll back for further actions. Change-Id: I9578fb0c2a3aed2fe5b1c704c6baea2e56ca39a9 Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com> (cherry picked from commit 952db3aa4d1fe889c524d1d70bde0479e638f53e)
-rw-r--r--utils/env_prepare/stack_prepare.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/env_prepare/stack_prepare.py b/utils/env_prepare/stack_prepare.py
index 640afa13..c1604f4d 100644
--- a/utils/env_prepare/stack_prepare.py
+++ b/utils/env_prepare/stack_prepare.py
@@ -84,7 +84,6 @@ def _source_file(rc_file):
shell=True)
output = p.communicate()[0]
output_lines = output.splitlines()
- del output_lines[5]
env = dict((line.split('=', 1) for line in output_lines))
os.environ.update(env)
return env