Skip to content
Permalink
Browse files
Get first host by array reference (#109)
  • Loading branch information
pivotal-jbarrett committed Sep 19, 2019
1 parent 6cb68ee commit e0b3c3167a3f0034d5ec82e1a3eeea2c0071f0ab
Showing 1 changed file with 1 addition and 1 deletion.
@@ -144,7 +144,7 @@ REPO=$(fixRepoName ${REPO})
SSH_OPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.geode-benchmarks/${TAG}-privkey.pem"
HOSTS=`aws ec2 describe-instances --query 'Reservations[*].Instances[*].PrivateIpAddress' --filter "Name=tag:geode-benchmarks,Values=${TAG}" --output text`
HOSTS=$(echo ${HOSTS} | tr ' ' ',')
FIRST_INSTANCE=`aws ec2 describe-instances --query 'Reservations[*].Instances[*].PublicIpAddress' --filter "Name=tag:geode-benchmarks,Values=${TAG}" --output text | cut -f 1 | head -n 1`
FIRST_INSTANCE=`aws ec2 describe-instances --query 'Reservations[*].Instances[0].PublicIpAddress' --filter "Name=tag:geode-benchmarks,Values=${TAG}" --output text`

echo "FIRST_INSTANCE=${FIRST_INSTANCE}"
echo "HOSTS=${HOSTS}"

0 comments on commit e0b3c31

Please sign in to comment.