File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
nemo_run/run/ray/templates
test/core/execution/artifacts Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ nodes_array=($nodes)
8888ip_addresses_array=()
8989
9090for node in $nodes ; do
91- ip_address=$( host $node | awk ' /has address/ { print $4 } ' )
91+ ip_address=$( getent hosts " $node " | awk ' { print $1} ' | head -n1 )
9292 # Add the IP address to the array
9393 ip_addresses_array+=(" $ip_address " )
9494done
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ nodes_array=($nodes)
9090ip_addresses_array=()
9191
9292for node in $nodes ; do
93- ip_address=$( host $node | awk ' /has address/ { print $4 } ' )
93+ ip_address=$( getent hosts " $node " | awk ' { print $1} ' | head -n1 )
9494 # Add the IP address to the array
9595 ip_addresses_array+=(" $ip_address " )
9696done
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ nodes_array=($nodes)
9191ip_addresses_array=()
9292
9393for node in $nodes ; do
94- ip_address=$( host $node | awk ' /has address/ { print $4 } ' )
94+ ip_address=$( getent hosts " $node " | awk ' { print $1} ' | head -n1 )
9595 # Add the IP address to the array
9696 ip_addresses_array+=(" $ip_address " )
9797done
You can’t perform that action at this time.
0 commit comments