mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Simplify Zerigo DNS list_zones request.
This commit is contained in:
parent
6f8c0e6120
commit
abe7c5dafe
1 changed files with 1 additions and 10 deletions
|
@ -31,17 +31,8 @@ module Fog
|
|||
# * 'restrict-axfr'<~String>
|
||||
# * 'status'<~Integer> - 200 indicates success
|
||||
def list_zones(options = {})
|
||||
parameters = {}
|
||||
options.each do |option, value|
|
||||
case option
|
||||
when :per_page
|
||||
parameters[:per_page] = value
|
||||
when :page
|
||||
parameters[:page] = value
|
||||
end
|
||||
end
|
||||
request(
|
||||
:query => parameters,
|
||||
:query => options,
|
||||
:expects => 200,
|
||||
:method => 'GET',
|
||||
:parser => Fog::Parsers::DNS::Zerigo::ListZones.new,
|
||||
|
|
Loading…
Add table
Reference in a new issue