aws-asg-fleet 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: ce01945099ab61bab01c4ac415857bceadbb9be1e489c53faa416485b2a6d7a9
4
- data.tar.gz: 22844439b83397996906929ef2e17d35c4eb926924af5ba36b33c400ec504f02
3
+ metadata.gz: 6d02104cf75f70b3a4564a7042cbb3aa1037241b1a47acc1493289124505a097
4
+ data.tar.gz: 76f4f1895b33859d1b4c329f5e723a52fa118277c1c4bcb1a7fef7b07b524404
5
5
  SHA512:
6
- metadata.gz: 146fb286bfe4cf8d3691cbc141c85d492c24ebfa23c9fc256ba3d2d0023d050a39b6728d9e4bac1574b7bb3e55f1995b498caf6b55ea034e498a2680b010d05a
7
- data.tar.gz: d524b890ba987c451511486236a5e32eb8b9fd11d3b77868c5e8b6f3ec3f241e01f305a3c74108a4c62dd856a629182d7998ac6c1aec8dbd5291c39c0fbea9f1
6
+ metadata.gz: 7946bb9fb7c0d3eb02120296b6209170518acfa2984db6229ca38022c3134de7dc59581513a33e4ff66a44179bf880d0844a96b157487bb3f2261cb308f4e776
7
+ data.tar.gz: b0ca26382ddaba4c806adb0b64aae972676b4979ee62f03f0c2d5f357b9e6936745cae4c94cc7bd9201ddd188fd6f8f9fb18d7cc2d6877b372b5148d0a5718bf
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "aws-asg-fleet"
8
- spec.version = "0.1.1"
8
+ spec.version = "0.1.3"
9
9
  spec.authors = ["Zach Wily"]
10
10
  spec.email = ["zach@zwily.com"]
11
11
  spec.description = %q{AWS Auto Scaling Fleets}
@@ -57,8 +57,15 @@ module Aws::AutoScaling
57
57
  group_for_tag(tags.first)
58
58
  end
59
59
 
60
+ def any_lc_group
61
+ tag_with_lc = tags.detect { |tag| !group_for_tag(tag).launch_configuration.nil? }
62
+ return nil if tag_with_lc.nil?
63
+
64
+ group_for_tag(tag_with_lc)
65
+ end
66
+
60
67
  def template_or_any_group
61
- template_group || any_group
68
+ template_group || any_lc_group
62
69
  end
63
70
 
64
71
  def exists?
@@ -97,7 +104,10 @@ module Aws::AutoScaling
97
104
  # existing launch configuration on the template scaling group.
98
105
  #
99
106
  def update_launch_configuration name, options = {}
100
- old_lc = template_or_any_group.launch_configuration
107
+ old_lc = template_or_any_group&.launch_configuration
108
+ # There aren't any groups using lcs, so skip updating
109
+ return if old_lc.nil?
110
+
101
111
  options = Fleet.options_from(old_lc,
102
112
  :image_id, :instance_type,
103
113
  :block_device_mappings, :instance_monitoring, :kernel_id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-asg-fleet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Wily
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-18 00:00:00.000000000 Z
11
+ date: 2019-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-autoscaling