From 8140d122de6b20bddea19908c7fffff3a65b391c Mon Sep 17 00:00:00 2001 From: Alexander Kolesen Date: Sat, 30 Jun 2012 23:51:24 +0300 Subject: [PATCH] Bugfix in Fog::DNS::AWS::Records.all! If we have more than 100 AWS records, this method returns different results if called twice. So we should reset attributes before each call. --- lib/fog/aws/models/dns/records.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fog/aws/models/dns/records.rb b/lib/fog/aws/models/dns/records.rb index 2bc5fb5f1..363a5e0bd 100644 --- a/lib/fog/aws/models/dns/records.rb +++ b/lib/fog/aws/models/dns/records.rb @@ -44,6 +44,11 @@ module Fog def all! data = [] + merge_attributes({'NextRecordName' => nil, + 'NextRecordType' => nil, + 'NextRecordIdentifier' => nil, + 'IsTruncated' => nil}) + begin options = { :name => next_record_name,