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:
parent
53bc5e3236
commit
d301caaa09
1 changed files with 1 additions and 1 deletions
|
@ -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" => {
|
||||
|
|
Loading…
Reference in a new issue