Skip to content

Commit 3e2d6fa

Browse files
committed
simplify
1 parent c4c36bf commit 3e2d6fa

File tree

1 file changed

+1
-2
lines changed
  • services/clusters-keeper/src/simcore_service_clusters_keeper/modules

1 file changed

+1
-2
lines changed

services/clusters-keeper/src/simcore_service_clusters_keeper/modules/clusters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async def get_cluster_workers(
128128
) -> list[EC2InstanceData]:
129129
app_settings = get_application_settings(app)
130130
assert app_settings.CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES # nosec
131-
ec2_instance_data: list[EC2InstanceData] = await get_ec2_client(app).get_instances(
131+
return await get_ec2_client(app).get_instances(
132132
key_names=[
133133
app_settings.CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES.WORKERS_EC2_INSTANCES_KEY_NAME
134134
],
@@ -139,7 +139,6 @@ async def get_cluster_workers(
139139
+ "*" # NOTE: this is done this way as * is a special char in AWS tag filtering
140140
},
141141
)
142-
return ec2_instance_data
143142

144143

145144
async def cluster_heartbeat(

0 commit comments

Comments
 (0)