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

[dynect|dns] find, not first.

This commit is contained in:
Dylan Egan 2011-09-04 09:34:38 -07:00
parent 53bc5e3236
commit d301caaa09

View file

@ -37,7 +37,7 @@ module Fog
response.status = 200
if record_id = options['record_id']
raise Fog::DNS::Dynect::NotFound unless record = zone[:records][type].first { |record| record[:record_id] == record_id }
raise Fog::DNS::Dynect::NotFound unless record = zone[:records][type].find { |record| record[:record_id] == record_id }
response.body = {
"status" => "success",
"data" => {