lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.88.0 vs lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.89.0

- old
+ new

@@ -230,13 +230,13 @@ # @option options [Integer] :max_attempts (40) # @option options [Float] :delay (15) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait # @return [Image] - def wait_until_exists(options = {}) + def wait_until_exists(options = {}, &block) options, params = separate_params_and_options(options) waiter = Waiters::ImageExists.new(options) - yield_waiter_and_warn(waiter, &Proc.new) if block_given? + yield_waiter_and_warn(waiter, &block) if block_given? resp = waiter.wait(params.merge(image_ids: [@id])) Image.new({ id: @id, data: resp.data.images[0], client: @client