From 886fb5a6d3acae7145f9aae626e68cf33ccb6c1a Mon Sep 17 00:00:00 2001 From: Dylan Egan Date: Thu, 1 Sep 2011 15:41:38 -0700 Subject: [PATCH] [dynect|dns] return the zone name. --- lib/fog/dynect/requests/dns/get_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/dynect/requests/dns/get_record.rb b/lib/fog/dynect/requests/dns/get_record.rb index 30c2df89a..3d1430306 100644 --- a/lib/fog/dynect/requests/dns/get_record.rb +++ b/lib/fog/dynect/requests/dns/get_record.rb @@ -60,7 +60,7 @@ module Fog records = zone[:records][type].select { |record| record[:fqdn] == fqdn } response.body = { "status" => "success", - "data" => records.collect { |record| "/REST/ARecord/#{record[:zone]}/#{record[:fqdn]}/#{record[:record_id]}" }, + "data" => records.collect { |record| "/REST/ARecord/#{record[:zone][:zone]}/#{record[:fqdn]}/#{record[:record_id]}" }, "job_id" => Fog::Dynect::Mock.job_id, "msgs" => [{ "INFO" => "detail: Found #{records.size} record",