File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/aws-library/src/aws_library/ec2 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ async def get_ec2_instance_capabilities(
8383 """
8484 if instance_type_names is None :
8585 assert ALL is None # nosec
86- selected_instance_types = []
86+ selection_or_all_if_empty = []
8787 else :
88- selected_instance_types = list (instance_type_names )
89- if len (selected_instance_types ) == 0 :
88+ selection_or_all_if_empty = list (instance_type_names )
89+ if len (selection_or_all_if_empty ) == 0 :
9090 msg = "`instance_type_names` cannot be an empty set. Set as None if all"
9191 raise ValueError (msg )
9292
9393 instance_types = await self .client .describe_instance_types (
94- InstanceTypes = selected_instance_types
94+ InstanceTypes = selection_or_all_if_empty
9595 )
9696 list_instances : list [EC2InstanceType ] = []
9797 for instance in instance_types .get ("InstanceTypes" , []):
You can’t perform that action at this time.
0 commit comments