File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1407,7 +1407,9 @@ def volume_size_supported(instance_type: str) -> bool:
1407
1407
try :
1408
1408
1409
1409
# local mode does not support volume size
1410
- if instance_type .startswith ("local" ):
1410
+ # instance type given as pipeline parameter does not support volume size
1411
+ # do not change the if statement order below.
1412
+ if is_pipeline_variable (instance_type ) or instance_type .startswith ("local" ):
1411
1413
return False
1412
1414
1413
1415
parts : List [str ] = instance_type .split ("." )
Original file line number Diff line number Diff line change @@ -1703,6 +1703,7 @@ def test_volume_size_not_supported(self):
1703
1703
"g5.8xlarge" ,
1704
1704
"local" ,
1705
1705
"local_gpu" ,
1706
+ ParameterString (name = "InstanceType" , default_value = "ml.m4.xlarge" ),
1706
1707
]
1707
1708
1708
1709
for instance in instances_that_dont_support_volume_size :
You can’t perform that action at this time.
0 commit comments