Print machine hostname in log (#6480)

automerge
This commit is contained in:
sakridge 2019-10-21 14:59:03 -07:00 committed by Grimes
parent b1c2c6009e
commit 6996f45d54
1 changed files with 4 additions and 3 deletions

View File

@ -100,7 +100,8 @@ case "$gpuMode" in
esac
waitForNodeToInit() {
echo "--- waiting for node to boot up"
hostname=$(hostname)
echo "--- waiting for $hostname to boot up"
SECONDS=
while [[ ! -r $initCompleteFile ]]; do
if [[ $SECONDS -ge 120 ]]; then
@ -108,10 +109,10 @@ waitForNodeToInit() {
echo "Error: $initCompleteFile not found in $SECONDS seconds"
exit 1
fi
echo "Waiting for $initCompleteFile ($SECONDS)..."
echo "Waiting for $initCompleteFile ($SECONDS) on $hostname..."
sleep 5
done
echo "Node booted up"
echo "$hostname booted up"
}
case $deployMethod in