It is better to put process files to /home/opnfv/qtip/.
Change-Id: I3ed5d13fdf1ce65303f1005ed2284c9ba2271207
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(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'))
else
echo "-------- all compute node ips: --------"
touch $HOME/ips.log
- echo "$IPS" > $HOME/ips.log
+ echo "$IPS" > $HOME/qtip/ips.log
echo $IPS
fi