Skip to content

Commit 1e61054

Browse files
committed
Rename accelerator_flavor to keep both local and global variables
1 parent 891c38a commit 1e61054

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/test_jupyter_with_papermill.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ function _handle_test()
346346
local notebook_id=
347347

348348
# Due to existing logic - cuda accelerator value needs to be treated as empty string
349-
local accelerator_flavor="${accelerator_flavor}"
350-
accelerator_flavor="${accelerator_flavor##'cuda'}"
349+
local accelerator="${accelerator_flavor}"
350+
accelerator="${accelerator_flavor##'cuda'}"
351351

352352

353353
case "${notebook_workload_name}" in
@@ -361,10 +361,10 @@ function _handle_test()
361361
notebook_id="${jupyter_trustyai_notebook_id}"
362362
;;
363363
*${jupyter_tensorflow_notebook_id}-*)
364-
notebook_id="${accelerator_flavor:+$accelerator_flavor/}${jupyter_tensorflow_notebook_id}"
364+
notebook_id="${accelerator:+$accelerator/}${jupyter_tensorflow_notebook_id}"
365365
;;
366366
*${jupyter_pytorch_notebook_id}-*)
367-
notebook_id="${accelerator_flavor:+$accelerator_flavor/}${jupyter_pytorch_notebook_id}"
367+
notebook_id="${accelerator:+$accelerator/}${jupyter_pytorch_notebook_id}"
368368
;;
369369
*)
370370
printf '%s\n' "No matching condition found for ${notebook_workload_name}."

0 commit comments

Comments
 (0)