ufo 6.0.6 → 6.0.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: 87344022dcbcd4b41904a181613e3eb4bbe8985577517d9633efb8f2b3795249
4
- data.tar.gz: 7f3d119496e82275a92f0b8b867bb08025c76955de837b33cddb39bdc835466c
3
+ metadata.gz: a1d99bfecc9c3cc0dd62ac1e0eef1091d175578cf439138cab340e0ffa877a21
4
+ data.tar.gz: 746c2c8379afa612682c77fe551a1e4b0219a4b75101837410e9a85a5a8a22c3
5
5
  SHA512:
6
- metadata.gz: 8964557bdb9b5a1958f22a3f72f6719de1c9a97fb2b5ca1e4b7961bc61cdb912817147246e86568c21ec2ba10fad0c9e5f5dc53c8bec2d6c92d86221df09711c
7
- data.tar.gz: a12c83ff26e2b0177e2ec9311f07a71fe1b5f9689663e45fd6267edfe4570795c31aab9f6dc06d2e059ae37711bb0017f1a7fce995ad1532aea942d09bbe6961
6
+ metadata.gz: 1fed912e9ceb5c30b96754185274cf8cf6c25f1f467816677df59665421d717d0e95cf9071ab033f8c03b4abc5011115ccfd15b146afd3700c834e606ba2fb79
7
+ data.tar.gz: f0f7f8944b7922438e1ed9355aa46575e3b2b405580f91f71f4664f80df6736425471c3be5b09d14f6bca5e11d44d0326b551d7086e6b5614618fd3c7b195afc
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.0.7] - 2022-03-07
7
+ - fix autoscaling.manual_changes.retain check
8
+ - improve Configured autoscaling message
9
+
6
10
  ## [6.0.6] - 2022-03-07
7
11
  - [#134](https://github.com/tongueroo/ufo/pull/134) config.autoscaling.manual_changes.retain support
8
12
  - change default `elb.healthy_threshold_count = 3`
@@ -21,12 +21,12 @@ module Ufo::Cfn::Stack::Builder::Resources::Scaling
21
21
 
22
22
  private
23
23
  def min_capacity
24
- return autoscaling.min_capacity if vars[:new_stack] && !autoscaling.manual_changes.retain
24
+ return autoscaling.min_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
25
25
  scalable_target ? scalable_target.min_capacity : autoscaling.min_capacity
26
26
  end
27
27
 
28
28
  def max_capacity
29
- return autoscaling.max_capacity if vars[:new_stack] && !autoscaling.manual_changes.retain
29
+ return autoscaling.max_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
30
30
  scalable_target ? scalable_target.max_capacity : autoscaling.max_capacity
31
31
  end
32
32
 
data/lib/ufo/cli/scale.rb CHANGED
@@ -46,7 +46,10 @@ class Ufo::CLI
46
46
  r.logical_resource_id == "ScalingTarget"
47
47
  end
48
48
  register_scalable_target(scalable_target)
49
- logger.info "Configured autoscaling to min: #{@min} max: #{@max}"
49
+ to = []
50
+ to << "min: #{@min}" if @min
51
+ to << "max: #{@max}" if @max
52
+ logger.info "Configured autoscaling to #{to.join(' ')}"
50
53
  end
51
54
 
52
55
  def register_scalable_target(scalable_target)
data/lib/ufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "6.0.6"
2
+ VERSION = "6.0.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.0.6
4
+ version: 6.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen