capistrano-autoscaling 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -419,7 +419,7 @@ module Capistrano
|
|
|
419
419
|
|
|
420
420
|
task(:destroy_group, :roles => :app, :except => { :no_release => true }) {
|
|
421
421
|
if autoscaling_group and autoscaling_group.exists?
|
|
422
|
-
if 0 <
|
|
422
|
+
if 0 < autoscaling_group.min_size and 0 < autoscaling_group.max_size
|
|
423
423
|
abort("AutoScalingGroup is not empty.")
|
|
424
424
|
end
|
|
425
425
|
logger.debug("Deleting AutoScalingGroup: #{autoscaling_group.name} (#{autoscaling_group.launch_configuration_name})")
|