Skip to content

Commit 1276851

Browse files
author
Tom Barnes
committed
Replace hostname with $HOST
1 parent 6f56f07 commit 1276851

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/integration-tests/bash/lease.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function makeLocalLease {
261261
#This file is created by script $0
262262
timestamp=0
263263
date=`date '+%m-%d-%YT%H:%M:%S'`
264-
host=`hostname`
264+
host=$HOST
265265
pid=$LOCAL_PID
266266
user=$USER
267267
EOF
@@ -270,7 +270,7 @@ EOF
270270
#This file is created by script $0
271271
timestamp=`date +%s`
272272
date=`date '+%m-%d-%YT%H:%M:%S'`
273-
host=`hostname`
273+
host=$HOST
274274
pid=$LOCAL_PID
275275
user=$USER
276276
EOF

wercker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ integration-test:
124124
echo @@ "If this blocks unexpectedly and you are sure that the kubernetes cluster isn't in use by "
125125
echo @@ "another Wercker pipeline, you can force the lease to free up via 'kubectl delete cm acceptance-test-lease'."
126126
echo @@ "See LEASE_PID in run.sh for details about this heuristic."
127-
echo @@ "PID=$LEASE_PID host=`hostname` date=`date`."
127+
echo @@ "PID=$LEASE_PID host=$HOST date=`date` user=$USER."
128128
echo @@ "Current lease owner (if any):"
129129
$WERCKER_SOURCE_DIR/src/integration-tests/bash/lease.sh -s
130130
echo @@ "About to try obtain lease:"

0 commit comments

Comments
 (0)