@@ -133,7 +133,7 @@ async def launch_instances(
133
133
with log_context (
134
134
_logger ,
135
135
logging .INFO ,
136
- msg = f"launching { number_of_instances } AWS instance(s) { instance_config .type .name } with { instance_config .tags = } " ,
136
+ msg = f"launch { number_of_instances } AWS instance(s) { instance_config .type .name } with { instance_config .tags = } " ,
137
137
):
138
138
# first check the max amount is not already reached
139
139
current_instances = await self .get_instances (
@@ -277,7 +277,7 @@ async def start_instances(
277
277
with log_context (
278
278
_logger ,
279
279
logging .INFO ,
280
- msg = f"starting instances { instance_ids } " ,
280
+ msg = f"start instances { instance_ids } " ,
281
281
):
282
282
await self .client .start_instances (InstanceIds = instance_ids )
283
283
# wait for the instance to be in a pending state
@@ -310,7 +310,7 @@ async def stop_instances(self, instance_datas: Iterable[EC2InstanceData]) -> Non
310
310
with log_context (
311
311
_logger ,
312
312
logging .INFO ,
313
- msg = f"stopping instances { [i .id for i in instance_datas ]} " ,
313
+ msg = f"stop instances { [i .id for i in instance_datas ]} " ,
314
314
):
315
315
await self .client .stop_instances (InstanceIds = [i .id for i in instance_datas ])
316
316
@@ -321,7 +321,7 @@ async def terminate_instances(
321
321
with log_context (
322
322
_logger ,
323
323
logging .INFO ,
324
- msg = f"terminating instances { [i .id for i in instance_datas ]} " ,
324
+ msg = f"terminate instances { [i .id for i in instance_datas ]} " ,
325
325
):
326
326
await self .client .terminate_instances (
327
327
InstanceIds = [i .id for i in instance_datas ]
@@ -335,7 +335,7 @@ async def set_instances_tags(
335
335
with log_context (
336
336
_logger ,
337
337
logging .DEBUG ,
338
- msg = f"setting { tags = } on instances '[{ [i .id for i in instances ]} ]'" ,
338
+ msg = f"set { tags = } on instances '[{ [i .id for i in instances ]} ]'" ,
339
339
):
340
340
await self .client .create_tags (
341
341
Resources = [i .id for i in instances ],
@@ -357,7 +357,7 @@ async def remove_instances_tags(
357
357
with log_context (
358
358
_logger ,
359
359
logging .DEBUG ,
360
- msg = f"removing { tag_keys = } of instances '[{ [i .id for i in instances ]} ]'" ,
360
+ msg = f"removal of { tag_keys = } from instances '[{ [i .id for i in instances ]} ]'" ,
361
361
):
362
362
await self .client .delete_tags (
363
363
Resources = [i .id for i in instances ],
0 commit comments