lib/hako/schedulers/ecs.rb in hako-0.20.2 vs lib/hako/schedulers/ecs.rb in hako-0.20.3

- old
+ new

@@ -220,14 +220,14 @@ # @return [nil] def remove service = describe_service if service if @dry_run - Hako.logger.info "ecs_client.update_service(cluster: #{@cluster}, service: #{@app_id}, desired_count: 0)" - Hako.logger.info "ecs_client.delete_service(cluster: #{@cluster}, service: #{@app_id})" + Hako.logger.info "ecs_client.update_service(cluster: #{service.cluster_arn}, service: #{service.service_arn}, desired_count: 0)" + Hako.logger.info "ecs_client.delete_service(cluster: #{service.cluster_arn}, service: #{service.service_arn})" else - ecs_client.update_service(cluster: @cluster, service: @app_id, desired_count: 0) - ecs_client.delete_service(cluster: @cluster, service: @app_id) + ecs_client.update_service(cluster: service.cluster_arn, service: service.service_arn, desired_count: 0) + ecs_client.delete_service(cluster: service.cluster_arn, service: service.service_arn) Hako.logger.info "#{service.service_arn} is deleted" end if @autoscaling @autoscaling.remove(service) end