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

fixed bug whereby dns.zones() was returning empty zone objects

This commit is contained in:
Ijonas Kisselbach 2011-03-10 07:52:59 +08:00 committed by Wesley Beary
parent df8ecccf84
commit 0afdbd42eb

View file

@ -10,8 +10,9 @@ module Fog
model Fog::DNSimple::DNS::Zone
def all
clear
data = connection.list_domains.body
load(data)
data.each {|object| self << new(object["domain"]) }
end
def get(zone_id)