lib/hako/schedulers/ecs.rb in hako-2.9.0 vs lib/hako/schedulers/ecs.rb in hako-2.9.1

- old
+ new

@@ -101,10 +101,12 @@ def deploy(containers) if @desired_count.nil? && @scheduling_strategy != 'DAEMON' validation_error!('desired_count must be set') end front_port = determine_front_port - ecs_elb_client.find_or_create_load_balancer(front_port) + unless @dry_run + ecs_elb_client.find_or_create_load_balancer(front_port) + end @scripts.each { |script| script.deploy_started(containers, front_port) } definitions = create_definitions(containers) if @dry_run volumes_definition.each do |d|