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

[dreamhost|dns] Do not add duplicated zones to the Zones collection

This commit is contained in:
Sergio Rubio 2013-01-22 20:13:09 +01:00
parent 19c8c4d877
commit c38aa22e3a

View file

@ -18,8 +18,12 @@ module Fog
def all
clear
zones = []
zones_added = []
service.records.each do |r|
unless zones_added.include?(r.zone)
zones << { :id => r.zone, :domain => r.zone }
zones_added << r.zone
end
end
load(zones)
end