lib/aws_ec2/waiter/ami.rb in aws-ec2-1.2.0 vs lib/aws_ec2/waiter/ami.rb in aws-ec2-1.2.1

- old
+ new

@@ -19,17 +19,17 @@ print '.' sleep delay current_time += 30 detected = detect_ami end + puts if current_time > timeout puts "ERROR: Timeout. Unable to detect and available ami: #{@options[:name]}" exit 1 else puts "Found available AMI: #{@options[:name]}" end - puts end private # Using custom detect_ami instead of ec2.wait_until(:image_availalbe, ...) # because we start checking for the ami even before we've called