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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ba0388507d7653bb8b4ef401bc97d0da22f7c4a
4
- data.tar.gz: 4582b52d1c44a0262093dc4eaa3eb2ada5ac87ae
3
+ metadata.gz: 9d2a676e9a43d3e869f60e0883d28e45e03855f8
4
+ data.tar.gz: 3873209edb10c08e741fdac887fc7880740686b7
5
5
  SHA512:
6
- metadata.gz: 5696f5615837915f58f7cd9d70016684338bcb58c8fd622f3637ca45d9c6c901ab2038e928004bd3df10f6df413cf81a944893f72c2e30bef028be351a6715ca
7
- data.tar.gz: f3a2a42c334f490ece190fa1be7f9e83699306d15a1b4028b114b56311f2634cc13f1876cced9b56f2f13f09afdc1550bd6b0a1793ffc4de3cf75cb0f16210e2
6
+ metadata.gz: 5b0981ea7efb10d3a74a5f7bcbb4d3d2b69010f2fc7690b002e9efcac225a85854df8ea937d0692126152554afc3c6df0dada042f34b79a5396793e4dce6dfb5
7
+ data.tar.gz: b2fcb942f13d6397c41d8eb2c15d86d16acb36496719662b2a884b8518ccee557a17846fe9975104611de8815a70c4be28e62381607e513a5f9d9b1a08f1bac8
@@ -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 options[:detach]
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister