capistrano-autoscaling 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -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})")
|