Skip to content

Commit

Permalink
Provide a way to skiop LC/AMI generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sixfeetover committed Feb 9, 2018
1 parent 5595a2f commit 8ba7e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/asg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def autoscale(groupname, *args)
end
end

if asg_instances.count > 0
if asg_instances.count > 0 && fetch(:create_ami, true)
after('deploy:finishing', 'asg:scale')
else
puts 'Autoscaling: AMI could not be created because no running instances were found.\
Expand Down

0 comments on commit 8ba7e6a

Please sign in to comment.