Skip to content

Commit

Permalink
Do not strip leading / from output prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jun 6, 2022
1 parent 08439e9 commit 8fc56cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sagemaker-shim"
version = "0.0.7"
version = "0.0.8"
description = "Adapts algorithms that implement the Grand Challenge inference API for running in SageMaker"
authors = ["James Meakin <12661555+jmsmkn@users.noreply.github.com>"]
license = "Apache-2.0"
Expand Down
2 changes: 0 additions & 2 deletions sagemaker_shim/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ def validate_prefix(cls, v: str) -> str: # noqa:B902
if not v:
raise ValueError("Prefix cannot be blank")

v = v.lstrip("/")

if v[-1] != "/":
v += "/"

Expand Down

0 comments on commit 8fc56cf

Please sign in to comment.