1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

add nil? check to marker and maxitems options

This commit is contained in:
solud 2015-07-17 16:16:16 -07:00
parent c98019aeb2
commit 2a3750718c

View file

@ -10,8 +10,8 @@ module Fog
model Fog::DNS::AWS::Zone
def all(options = {})
options[:marker] ||= marker
options[:maxitems] ||= max_items
options[:marker] ||= marker unless marker.nil?
options[:maxitems] ||= max_items unless max_items.nil?
data = service.list_hosted_zones(options).body['HostedZones']
load(data)
end