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

[dreamhost|dns] Zone.records: list only records matching the current zone

This commit is contained in:
Sergio Rubio 2013-01-22 20:36:59 +01:00
parent 6dcbd01695
commit 6d2a500b76

View file

@ -26,10 +26,12 @@ module Fog
#
# Return a list of records for this zone
#
# Since Dreamhost does not support zones, this is
# emulated. Iterates over all the records and discards
# the ones where Record.zone != domain (the current zone domain)
#
def records
@records ||= begin
Fog::DNS::Dreamhost::Records.new( :zone => self, :service => service )
end
service.records.all :zone => domain
end
#