lib/forger/create/info.rb in forger-3.0.0 vs lib/forger/create/info.rb in forger-3.0.1

- old
+ new

@@ -32,25 +32,19 @@ end reservation = resp.reservations.first # Super edge case when reserverations not immediately found yet until reservation + resp = ec2.describe_instances(instance_ids: [instance_id]) reservation = resp.reservations.first seconds = 0.5 puts "Reserveration not found. Sleeping for #{seconds} and will try again." sleep seconds end spot_id = reservation.instances.first.spot_instance_request_id return unless spot_id puts "Spot instance request id: #{spot_id}" - end - - def monthly_spot_price - max_price = @params[:instance_market_options][:spot_options][:max_price].to_f - monthly_price = max_price * 24 * 30 - "%.2f" % monthly_price - rescue end def launch_template launch_template = params[:launch_template] return unless launch_template