Skip to content

Commit b3b92d2

Browse files
committed
refactor: check if ARM image ID is available for ARM launch templates
1 parent 70ce1ae commit b3b92d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

functions/lambda.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def main():
206206
for launch_template in launch_templates:
207207
if launch_template.is_arm and not image_id_arm:
208208
raise MissingEnvironmentVariable('Set the "SSM_PARAMETER_NAME_ARM" environment variable')
209+
210+
for launch_template in launch_templates:
209211
lt_image_id = image_id_arm if launch_template.is_arm else image_id
210212

211213
if not is_launch_template_updated(lt_image_id, launch_template):

0 commit comments

Comments
 (0)