Skip to content

Commit cf8da42

Browse files
himani2411Himani Anil Deshpande
andauthored
[Gb200][Prolog] Use local variables for better readability (aws#6988)
Co-authored-by: Himani Anil Deshpande <[email protected]>
1 parent 15ef2a0 commit cf8da42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration-tests/tests/ultraserver/test_gb200/test_gb200/91_nvidia_imex_prolog.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ function get_ips_from_node_names() {
7777
}
7878

7979
function get_compute_resource_name() {
80-
echo "${2}" | sed -E "s/${1}(.+)-[0-9]+$/\1/"
80+
local _queue_name_prefix=$1
81+
local _slurmd_node_name=$2
82+
echo "${_slurmd_node_name}" | sed -E "s/${_queue_name_prefix}(.+)-[0-9]+$/\1/"
8183
}
8284

8385
function check_imex_needs_reload() {

0 commit comments

Comments
 (0)