awful 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/auto_scaling.rb +3 -1
- data/lib/awful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2a676e9a43d3e869f60e0883d28e45e03855f8
|
4
|
+
data.tar.gz: 3873209edb10c08e741fdac887fc7880740686b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0981ea7efb10d3a74a5f7bcbb4d3d2b69010f2fc7690b002e9efcac225a85854df8ea937d0692126152554afc3c6df0dada042f34b79a5396793e4dce6dfb5
|
7
|
+
data.tar.gz: b2fcb942f13d6397c41d8eb2c15d86d16acb36496719662b2a884b8518ccee557a17846fe9975104611de8815a70c4be28e62381607e513a5f9d9b1a08f1bac8
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -263,7 +263,9 @@ module Awful
|
|
263
263
|
autoscaling.describe_auto_scaling_instances.map(&:auto_scaling_instances).flatten.select do |instance|
|
264
264
|
instance.auto_scaling_group_name.match(name) and instance.launch_configuration_name != asg.launch_configuration_name
|
265
265
|
end.tap do |olds|
|
266
|
-
if
|
266
|
+
if olds.empty?
|
267
|
+
# noop
|
268
|
+
elsif options[:detach]
|
267
269
|
autoscaling.detach_instances(auto_scaling_group_name: name, instance_ids: olds.map(&:instance_id), should_decrement_desired_capacity: options[:decrement])
|
268
270
|
elsif options[:deregister]
|
269
271
|
asg.load_balancer_names.each do |elb_name|
|
data/lib/awful/version.rb
CHANGED