Skip to content

Commit

Permalink
Add retry timer to LaunchConfig also
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Serman committed Nov 23, 2015
1 parent a974f55 commit 7862e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/elbas/launch_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ def self.create(ami, &block)

def save(ami)
info "Creating an EC2 Launch Configuration for AMI: #{ami.aws_counterpart.id}"
@aws_counterpart = autoscaling.launch_configurations.create(name, ami.aws_counterpart.id, instance_size, create_options)
@aws_counterpart = with_retry do
autoscaling.launch_configurations.create(name, ami.aws_counterpart.id, instance_size, create_options)
end
end

def attach_to_autoscale_group!
Expand Down
2 changes: 1 addition & 1 deletion lib/elbas/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Elbas
VERSION = '0.16.0'
VERSION = '0.17.0'
end

0 comments on commit 7862e91

Please sign in to comment.