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

[dynect|dns] always ensure it's an integer.

This commit is contained in:
Dylan Egan 2011-09-04 09:36:34 -07:00
parent d301caaa09
commit 76be4bc54c

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].find { |record| record[:record_id] == record_id }
raise Fog::DNS::Dynect::NotFound unless record = zone[:records][type].find { |record| record[:record_id] == record_id.to_i }
response.body = {
"status" => "success",
"data" => {