From e164fe7bdbaa09808f360cfdd1aca49a52452031 Mon Sep 17 00:00:00 2001 From: Bulat Shakirzyanov Date: Thu, 7 Jun 2012 15:28:07 -0700 Subject: [PATCH] fix typos --- lib/fog/aws/requests/dns/create_hosted_zone.rb | 4 ++-- lib/fog/aws/requests/dns/get_hosted_zone.rb | 2 +- lib/fog/aws/requests/dns/list_hosted_zones.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/aws/requests/dns/create_hosted_zone.rb b/lib/fog/aws/requests/dns/create_hosted_zone.rb index d4d5c3043..78943f9ce 100644 --- a/lib/fog/aws/requests/dns/create_hosted_zone.rb +++ b/lib/fog/aws/requests/dns/create_hosted_zone.rb @@ -69,8 +69,8 @@ module Fog #make sure we have a unique call reference caller_ref = "ref-#{rand(1000000).to_s}" end - zone_id = Fog::AWS::Mock.zone_id - self.data[:zones]["/hostedzone/#{zone_id}"] = { + zone_id = "/hostedzone/#{Fog::AWS::Mock.zone_id}" + self.data[:zones][zone_id] = { :id => zone_id, :name => name, :reference => caller_ref, diff --git a/lib/fog/aws/requests/dns/get_hosted_zone.rb b/lib/fog/aws/requests/dns/get_hosted_zone.rb index d3bb51486..c55b8a404 100644 --- a/lib/fog/aws/requests/dns/get_hosted_zone.rb +++ b/lib/fog/aws/requests/dns/get_hosted_zone.rb @@ -45,7 +45,7 @@ module Fog response.status = 200 response.body = { 'HostedZone' => { - 'Id' => "/hostedzone/#{zone[:zone_id]}", + 'Id' => zone[:id], 'Name' => zone[:name], 'CallerReference' => zone[:reference], 'Comment' => zone[:comment] diff --git a/lib/fog/aws/requests/dns/list_hosted_zones.rb b/lib/fog/aws/requests/dns/list_hosted_zones.rb index 6fabbd5df..829a38e3f 100644 --- a/lib/fog/aws/requests/dns/list_hosted_zones.rb +++ b/lib/fog/aws/requests/dns/list_hosted_zones.rb @@ -75,7 +75,7 @@ module Fog response.body = { 'HostedZones' => zones.map do |z| { - 'Id' => "/hostedzone/#{z[:zone_id]}", + 'Id' => z[:id], 'Name' => z[:name], 'CallerReference' => z[:reference], 'Comment' => z[:comment],