autocanary24 0.1.1 → 0.1.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: d2c33ce811b08c46f80e62f88972f2b577f41042
4
- data.tar.gz: 350fa844da5b22db7d152b594b0de966db960986
3
+ metadata.gz: 875eca9b01aebfa2c37e85e05668bfc2560ff360
4
+ data.tar.gz: 2ec3d9b1fa418959295202d1485141a4c0acc14d
5
5
  SHA512:
6
- metadata.gz: cf08b527762678bf3da7c8c39989da89c551d7907e130aff92f17229a4910a48ab0dff8398d134099e81f154b7831433f8cdfe1f9373df9e8641485311a9b902
7
- data.tar.gz: b3b11bbd8f3a83c71e344b9250e9e80f80083e5f277d16ddcb1250486ce8a575ec28010d03e7e339548d9921a74b9819ae449fade40a590d554d68e1ccbfcc1a
6
+ metadata.gz: f3eff675c78759f4a5e637dbd18c186405e43433e58bfb1d2644702fb55bd6d1cef2e040e13c20ed2d1b272b2bbc32ea2929002f75e14e7571e46c4dcbc4957d
7
+ data.tar.gz: 5ebfd37f5539c35187d911c91cbf1e9adc3d34f1d4e5f532aee13adab83312c4a4ef5cc783b3a5e0c3702da2560a04983213c730e3179b397b58539ffc79af83
@@ -96,7 +96,10 @@ module AutoCanary24
96
96
  puts "WARNING: ASG still on the ELB!"
97
97
  end
98
98
 
99
- instances = auto_scaling_group[:instances].map{ |i| { instance_id: i[:instance_id] } }
99
+ instances = auto_scaling_group[:instances] \
100
+ .select { |i| i[:lifecycle_state]=="InService" } \
101
+ .map{ |i| { instance_id: i[:instance_id] } }
102
+
100
103
  wait_for_instances_detached_from_elb(instances, elb)
101
104
  end
102
105
 
@@ -123,7 +126,10 @@ module AutoCanary24
123
126
  puts "WARNING: ASG not on the ELB yet!"
124
127
  end
125
128
 
126
- instances = auto_scaling_group[:instances].map{ |i| { instance_id: i[:instance_id] } }
129
+ instances = auto_scaling_group[:instances] \
130
+ .select { |i| i[:lifecycle_state]=="InService" } \
131
+ .map{ |i| { instance_id: i[:instance_id] } }
132
+
127
133
  wait_for_instances_attached_to_elb(instances, elb)
128
134
  end
129
135
 
@@ -1,3 +1,3 @@
1
1
  module AutoCanary24
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocanary24
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Garbe