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:
14071407 try :
14081408
14091409 # 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" ):
14111413 return False
14121414
14131415 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):
17031703 "g5.8xlarge" ,
17041704 "local" ,
17051705 "local_gpu" ,
1706+ ParameterString (name = "InstanceType" , default_value = "ml.m4.xlarge" ),
17061707 ]
17071708
17081709 for instance in instances_that_dont_support_volume_size :
You can’t perform that action at this time.
0 commit comments