Skip to content

Commit

Permalink
Change awk regex command to capture the coordinate address properly
Browse files Browse the repository at this point in the history
michelle-yooh committed Dec 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
dietmarw Dietmar Winkler
1 parent 5804829 commit 6423d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu_multi_process_run.sh
Original file line number Diff line number Diff line change
@@ -124,7 +124,7 @@ resolve_coordinator_ip() {
echo "Coordinator Address $JAX_COORDINATOR_ADDRESS"

while [[ "$coordinator_found" = false && $lookup_attempt -le $max_coordinator_lookups ]]; do
coordinator_ip_address=$(nslookup "$JAX_COORDINATOR_ADDRESS" 2>/dev/null | awk '/^Address: / { print $2 }' | head -n 1)
coordinator_ip_address=$(nslookup "$JAX_COORDINATOR_ADDRESS" 2>/dev/null | awk '/Address: / { print $2 }' | head -n 1)
if [[ -n "$coordinator_ip_address" ]]; then
coordinator_found=true
echo "Coordinator IP address: $coordinator_ip_address"

0 comments on commit 6423d99

Please sign in to comment.