ufo 6.3.6 → 6.3.7

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: 586d1502a32e9d1e3aa5a8447371c5b9fc854f189a841b9a822ce2cef4156c0b
4
- data.tar.gz: 03607a2573b1a27c245f2b42614589513250fa91f2c8c69b5f8767664083aeb9
3
+ metadata.gz: 564a94e07c4dcf5cdea7b63623f1c5f7741487132fb14d3cfab36ea4c2ccb487
4
+ data.tar.gz: bfd797914511f0ce5750cd0102a9b8d79be50a4daaf4ad7c9b76e0578eb7bccb
5
5
  SHA512:
6
- metadata.gz: b9b72a9063f47a628cf5455f91a9db1f6db89e74416b54a30cd21724a010d4bd040e31b48caf4d2fec381e88d06d4efb8e8202b3d31e2ac7d8913e38a669ec1b
7
- data.tar.gz: 29d841dd38e9ba2b2132adf00689b9e39eb34dcf3436601d70f7d78675f9b4eece5f08739a29ac9bfd6c0f3762ec4867d72ea9df1b681fe77f04290da3c498af
6
+ metadata.gz: c01fae80702562184e0e4a7c43d33ec75ef23d70d94776a8262609278c6ffe3dc32dce11100760f6cb7f63988494c058823b8c3e652065e07c5e75ddcd3ca58c
7
+ data.tar.gz: b5d8b619743945fd793ee7e62c264a9dd17ea16cceb59ccf563ba3f35c7a158a42e1c901882788aea74e56a02c50eabea1c3e6391c833331c7840ad591186658
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [6.3.7] - 2022-04-29
7
+ - [#173](https://github.com/tongueroo/ufo/pull/173) fix when ssl certs not used
8
+
6
9
  ## [6.3.6] - 2022-04-29
7
10
  - [#172](https://github.com/tongueroo/ufo/pull/172) support multiple ssl certs
8
11
 
@@ -1,7 +1,7 @@
1
1
  class Ufo::Cfn::Stack::Builder::Resources
2
2
  class ListenerCertificate < ListenerSsl
3
3
  def build
4
- return unless certificates.size >= 1 # already removed firt cert
4
+ return unless certificates && certificates.size >= 1 # already removed firt cert
5
5
  {
6
6
  Type: "AWS::ElasticLoadBalancingV2::ListenerCertificate",
7
7
  Condition: "CreateElbIsTrue",
@@ -18,13 +18,15 @@ class Ufo::Cfn::Stack::Builder::Resources
18
18
 
19
19
  def certificates
20
20
  ssl = Ufo.config.elb.ssl
21
- certs = normalize(ssl.certificates) if ssl.certificates
22
- # CloudFormation has weird interface
23
- # Only one cert allowed at the AWS::ElasticLoadBalancingV2::Listener
24
- # https://stackoverflow.com/questions/54447250/how-to-set-multiple-certificates-for-awselasticloadbalancingv2listener
25
- # Also note the docs say "You can specify one certificate per resource."
26
- # But tested and multiple certs here work
27
- certs[1..-1] # dont include the first one
21
+ if ssl.certificates
22
+ certs = normalize(ssl.certificates)
23
+ # CloudFormation has weird interface
24
+ # Only one cert allowed at the AWS::ElasticLoadBalancingV2::Listener
25
+ # https://stackoverflow.com/questions/54447250/how-to-set-multiple-certificates-for-awselasticloadbalancingv2listener
26
+ # Also note the docs say "You can specify one certificate per resource."
27
+ # But tested and multiple certs here work
28
+ certs[1..-1] # dont include the first one
29
+ end
28
30
  end
29
31
  end
30
32
  end
data/lib/ufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "6.3.6"
2
+ VERSION = "6.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.6
4
+ version: 6.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen