From 4f1d3c06210fbae6b4cd75f140590424f0c96768 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Fri, 24 Nov 2023 22:05:25 +0000 Subject: [PATCH] fmt --- upload_ami/cli.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/upload_ami/cli.py b/upload_ami/cli.py index ecdf84f..4d5e7a1 100644 --- a/upload_ami/cli.py +++ b/upload_ami/cli.py @@ -94,7 +94,14 @@ def copy_image(image_id, image_name, source_region, target_region): return (target_region, copy_image["ImageId"]) with ThreadPoolExecutor() as executor: - image_ids = dict(executor.map( lambda target_region: copy_image( image_id, image_name, source_region, target_region), regions)) + image_ids = dict( + executor.map( + lambda target_region: copy_image( + image_id, image_name, source_region, target_region + ), + regions, + ) + ) print(json.dumps(image_ids))