From a07079196f0ef16569568b53eb2456b0dc0550d1 Mon Sep 17 00:00:00 2001 From: Sean Hart Date: Thu, 4 Oct 2012 11:02:14 -0700 Subject: [PATCH] Added parsing for Marker. AWS limits response to 100 lines and gives you a marker to get the next batch with --- lib/fog/aws/parsers/elasticache/event_list.rb | 2 ++ lib/fog/aws/parsers/rds/event_list.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/fog/aws/parsers/elasticache/event_list.rb b/lib/fog/aws/parsers/elasticache/event_list.rb index 87d932fc1..0ba3bcfbb 100644 --- a/lib/fog/aws/parsers/elasticache/event_list.rb +++ b/lib/fog/aws/parsers/elasticache/event_list.rb @@ -27,6 +27,8 @@ module Fog @event[name] = value ? value.strip : name when 'Event' @response['Events'] << @event unless @event.empty? + when 'IsTruncated', 'Marker', 'NextMarker' + @response[name] = value else super end diff --git a/lib/fog/aws/parsers/rds/event_list.rb b/lib/fog/aws/parsers/rds/event_list.rb index 1ec14dd79..90e0917c8 100644 --- a/lib/fog/aws/parsers/rds/event_list.rb +++ b/lib/fog/aws/parsers/rds/event_list.rb @@ -27,6 +27,8 @@ module Fog @event[name] = value ? value.strip : name when 'Event' @response['Events'] << @event unless @event.empty? + when 'IsTruncated', 'Marker', 'NextMarker' + @response[name] = value else super end