Skip to content

Commit 40432b3

Browse files
remove --strip-component for untar source tar.gz (#5163)
* remove --strip-component for untar source tar.gz * update code.tar.gz in test --------- Co-authored-by: Erick Benitez-Ramos <[email protected]>
1 parent 14d7de1 commit 40432b3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/sagemaker/modules/train/model_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ def _prepare_train_script(
865865
working_dir = f"cd {SM_CODE_CONTAINER_PATH} \n"
866866
if source_code.source_dir.endswith(".tar.gz"):
867867
tarfile_name = os.path.basename(source_code.source_dir)
868-
working_dir += f"tar --strip-components=1 -xzf {tarfile_name} \n"
868+
working_dir += f"tar -xzf {tarfile_name} \n"
869869

870870
if base_command:
871871
execute_driver = EXECUTE_BASE_COMMANDS.format(base_command=base_command)
-139 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)