knuckle_cluster 1.2.0 → 1.2.1

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: d4179fb4fe181bb800defdb0634691c7c85f9c63
4
- data.tar.gz: e3c7e7786cba37a32531d4425dbed70e7713936c
3
+ metadata.gz: 3d7a0dd836d8eefb37421b1175b18d015bd10937
4
+ data.tar.gz: 75d8bc71322dd8f75fe3dbf328c9310900ce5d0a
5
5
  SHA512:
6
- metadata.gz: e09f159cae31ec646190f7c31457956c2b797e15e4e7f79096b03f0892171382d62b5eb5e58e62de3ccb62383bb629a07f8c06282ce708cf51c3be6336f54e1e
7
- data.tar.gz: 2c9fd926e86258191a459ae27df48c360ccd7b11bbeb3371ec0907b7eaabe2de9cc2c57fc2c2395be130e6ec9f1afec46070b0d0a35bec984aea05c3f0a77284
6
+ metadata.gz: f37ce827c3b94c732e34de888ca37b2657a74c62d589d3fff8c273d72465c3bde4a28df293b3a2bddb56a3ab2b64b1a5517e1061c7b5d33dd55c8022bc3828d6
7
+ data.tar.gz: 459afa76e9844bba56278658496a34ff5c5255bfaf41d7179d37a027edac822e848abf73c15721c3358565ca0bf10daf96aa9f7a1926ebd9d345c9179be694a5
@@ -31,6 +31,11 @@ module KnuckleCluster
31
31
  def load_agents
32
32
  auto_scaling_instances = autoscaling_client.describe_auto_scaling_groups(auto_scaling_group_names: [@asg_name]).to_h
33
33
 
34
+ if auto_scaling_instances[:auto_scaling_groups].empty?
35
+ puts "Could not find auto scaling group '#{asg_name}' in region #{aws_client_config[:region]}."
36
+ exit(0)
37
+ end
38
+
34
39
  instance_ids = auto_scaling_instances[:auto_scaling_groups][0][:instances].map{|instance| instance[:instance_id]}
35
40
 
36
41
  instance_reservations = ec2_client.describe_instances(instance_ids: instance_ids).reservations
@@ -1,3 +1,3 @@
1
1
  module KnuckleCluster
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knuckle_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-25 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler