File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1730,16 +1730,14 @@ def _pack_and_upload_code(
1730
1730
"sagemaker_session unspecified when creating your Processor to have one set up "
1731
1731
"automatically."
1732
1732
)
1733
- if ( "/sourcedir.tar.gz" in estimator .uploaded_code .s3_prefix ) :
1733
+ if "/sourcedir.tar.gz" in estimator .uploaded_code .s3_prefix :
1734
1734
# Upload the bootstrapping code as s3://.../jobname/source/runproc.sh.
1735
1735
entrypoint_s3_uri = estimator .uploaded_code .s3_prefix .replace (
1736
1736
"sourcedir.tar.gz" ,
1737
1737
"runproc.sh" ,
1738
1738
)
1739
1739
else :
1740
- raise RuntimeError (
1741
- "S3 source_dir file must be named `sourcedir.tar.gz.`"
1742
- )
1740
+ raise RuntimeError ("S3 source_dir file must be named `sourcedir.tar.gz.`" )
1743
1741
1744
1742
script = estimator .uploaded_code .script_name
1745
1743
s3_runproc_sh = S3Uploader .upload_string_as_file_body (
You can’t perform that action at this time.
0 commit comments