Skip to content

Commit dc22713

Browse files
committed
rename
1 parent 8b5638e commit dc22713

File tree

1 file changed

+4
-4
lines changed
  • packages/aws-library/src/aws_library/ec2

1 file changed

+4
-4
lines changed

packages/aws-library/src/aws_library/ec2/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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", []):

0 commit comments

Comments
 (0)