Skip to content

Commit 492d05a

Browse files
committed
fix: don't use os.path.join for S3 for output in processing.
1 parent dc0b5a7 commit 492d05a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sagemaker/processing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ def _normalize_outputs(self, outputs=None):
257257
# If the output's destination is not an s3_uri, create one.
258258
parse_result = urlparse(output.destination)
259259
if parse_result.scheme != "s3":
260-
s3_uri = os.path.join(
261-
"s3://",
260+
s3_uri = "s3://{}/{}/output/{}".format(
262261
self.sagemaker_session.default_bucket(),
263262
self._current_job_name,
264-
"output",
265263
output.output_name,
266264
)
267265
output.destination = s3_uri

0 commit comments

Comments
 (0)