From 38b4dea9415402702bcc1b78242d83760b229c31 Mon Sep 17 00:00:00 2001 From: Tarun Menon Date: Mon, 22 Jul 2024 10:48:36 +1000 Subject: [PATCH] fix syntax error --- ecs-task.cfndsl.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ecs-task.cfndsl.rb b/ecs-task.cfndsl.rb index a881ee0..05d0424 100644 --- a/ecs-task.cfndsl.rb +++ b/ecs-task.cfndsl.rb @@ -240,9 +240,8 @@ # add ebs volumes ebs_volumes = external_parameters.fetch(:ebs_volumes, []) ebs_volumes.each do |ebs_volume| - mount_points << { ContainerPath: ebs_volume['name'], SourceVolume: ebs_volume['source_volume'], ReadOnly: false} - volumes << {Name: ebs_volume['name'], ConfiguredAtLaunch: true } - end + mount_points << { ContainerPath: ebs_volume['name'], SourceVolume: ebs_volume['source_volume'], ReadOnly: false} + volumes << {Name: ebs_volume['name'], ConfiguredAtLaunch: true } task_def.merge!({MountPoints: mount_points }) task_def.merge!({Volumes: volumes }) end