Skip to content

Commit afaa1aa

Browse files
Update ecs_run not to fail if deployments are not returned in describe services response
Co-authored-by: Volodymyr Pihol <[email protected]>
1 parent 3714e15 commit afaa1aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

ecs_run.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
raise 'No container found.' unless container_name
9393

9494
network_configuration_source =
95-
if service.deployments.length.positive?
95+
if service.deployments&.length.to_i.positive?
9696
service.deployments[0]
9797
elsif service.task_sets.length.positive?
9898
service.task_sets[0]

0 commit comments

Comments
 (0)