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:
parent
d301caaa09
commit
76be4bc54c
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module Fog
|
||||||
response.status = 200
|
response.status = 200
|
||||||
|
|
||||||
if record_id = options['record_id']
|
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 = {
|
response.body = {
|
||||||
"status" => "success",
|
"status" => "success",
|
||||||
"data" => {
|
"data" => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue