aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-08 14:32:59 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-08 14:39:03 +0800
commit773abe961b1f4e5a8eb76058f90c628b66b1ad4b (patch)
tree3dcda41fd26b7c4ba5433275cf80df418e8817d2
parentc7761e0760aaacb801478308b6774dccb33cbf2e (diff)
Move a process file ips.log to /home/opnfv/qtip/
It is better to put process files to /home/opnfv/qtip/. Change-Id: I3ed5d13fdf1ce65303f1005ed2284c9ba2271207 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
-rw-r--r--func/env_setup.py3
-rwxr-xr-xscripts/fetch_compute_ips.sh2
2 files changed, 2 insertions, 3 deletions
diff --git a/func/env_setup.py b/func/env_setup.py
index 6027f904..e9f9cd2a 100644
--- a/func/env_setup.py
+++ b/func/env_setup.py
@@ -113,8 +113,7 @@ class Env_setup:
(installer_type, installer_ip)
logger.info(cmd)
os.system(cmd)
- home = expanduser("~")
- with open(home + "/ips.log", "r") as file:
+ with open(expanduser('~') + "/qtip/ips.log", "r") as file:
data = file.read()
if data:
ips.extend(data.rstrip('\n').split('\n'))
diff --git a/scripts/fetch_compute_ips.sh b/scripts/fetch_compute_ips.sh
index ebe817a6..4bdc9a48 100755
--- a/scripts/fetch_compute_ips.sh
+++ b/scripts/fetch_compute_ips.sh
@@ -110,7 +110,7 @@ if [ -z "$IPS" ]; then
else
echo "-------- all compute node ips: --------"
touch $HOME/ips.log
- echo "$IPS" > $HOME/ips.log
+ echo "$IPS" > $HOME/qtip/ips.log
echo $IPS
fi