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

handle zone with no records

This commit is contained in:
Trae Robrock 2013-07-28 13:01:50 -07:00
parent 1e96bfcbed
commit 3ba09b85b7

View file

@ -33,7 +33,7 @@ module Fog
def list_records(domain)
response = Excon::Response.new
response.status = 200
response.body = self.data[:records][domain]
response.body = self.data[:records][domain] || []
response
end