Skip to content

Commit 1e312e5

Browse files
committed
fix: Change the order of the if statement check.
1 parent 1a6a567 commit 1e312e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,9 @@ def volume_size_supported(instance_type: str) -> bool:
14031403
try:
14041404

14051405
# local mode does not support volume size
1406-
if instance_type.startswith("local") or is_pipeline_variable(instance_type):
1406+
# instance type given as pipeline parameter does not support volume size
1407+
# do not change the if statement order below.
1408+
if is_pipeline_variable(instance_type) or instance_type.startswith("local"):
14071409
return False
14081410

14091411
parts: List[str] = instance_type.split(".")

0 commit comments

Comments
 (0)