hako 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33326412067e2d76c5eefbfbbfce921c8fdd1c18
4
- data.tar.gz: 5bc1462886aa8f7ddd30cea32801456c876f1d06
3
+ metadata.gz: de23a44f8ddc813bbeab7fd82eb3db64f439e82e
4
+ data.tar.gz: c086e946fea0dc907a98733b44085219be86727d
5
5
  SHA512:
6
- metadata.gz: c8c213b893312540f4a5354f72ddff83c322a5c790bad6b21803f0b97d81a82ebd71b6dfc7be267f942caf8b7e3f4c94a7096ffc07cacbb23c1a5bdc89af3e06
7
- data.tar.gz: 26708b2e2aca74e1f246da4e8030a6b831d7585a1eb891ab7533b10d5eaad48255515db32434749203e22d9bb43f19cc1aeca7bc6382ec29095c1f0f572d6908
6
+ metadata.gz: c068d2f8857df91fd803c6fa4a7eb043dbc9b6a01814599ca544a82fcc3036603c58734be4c1ec65985062b146703ab28c50e01ba97a032077e123cc50272f2c
7
+ data.tar.gz: b08335811bff88a721352f3bb20b5597a889ca81ce8bd0a9bfdb9831a6950c7b2635ad3f51c5cf667aab439bc7e2a18453f346e5747185b2567adf34887b7bc6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.6.1 (2017-07-11)
2
+ ## Bug fixes
3
+ - Exclude unusable instances when checking remaining capacity
4
+
1
5
  # 1.6.1 (2017-06-26)
2
6
  ## Changes
3
7
  - Output cluster information in `--no-wait` mode
@@ -884,7 +884,9 @@ module Hako
884
884
  if c.container_instance_arns.empty?
885
885
  []
886
886
  else
887
- ecs_client.describe_container_instances(cluster: @cluster, container_instances: c.container_instance_arns).container_instances
887
+ ecs_client.describe_container_instances(cluster: @cluster, container_instances: c.container_instance_arns).container_instances.select do |container_instance|
888
+ container_instance.agent_connected && container_instance.status == 'ACTIVE'
889
+ end
888
890
  end
889
891
  end
890
892
  if has_capacity?(task_definition, container_instances)
data/lib/hako/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '1.6.1'
4
+ VERSION = '1.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk