Skip to content

Commit

Permalink
Fix read permission denied on train script when run as non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Jan 7, 2025
1 parent cf74126 commit 6c5a1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk_v2/kubeflow/training/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def get_args_using_train_func(
read -r -d '' SCRIPT << EOM\n
{func_code}
EOM
printf "%s" \"$SCRIPT\" > \"{func_file}\"
{entrypoint} \"{func_file}\""""
printf "%s" \"$SCRIPT\" > \"$program_path\"/\"{func_file}\"
{entrypoint} \"$program_path\"/\"{func_file}\""""
)

# Add function code to the execute script.
Expand Down

0 comments on commit 6c5a1dc

Please sign in to comment.