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:
parent
c98019aeb2
commit
2a3750718c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue