From 011b1f071cec0949cdbfc2f764ea1f22e0c2b996 Mon Sep 17 00:00:00 2001 From: Matthew O'Riordan Date: Fri, 13 Mar 2015 11:16:56 +0000 Subject: [PATCH] Ruby 1.8.7 support --- lib/fog/aws/requests/dns/change_resource_record_sets.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/requests/dns/change_resource_record_sets.rb b/lib/fog/aws/requests/dns/change_resource_record_sets.rb index 64ee40846..10396601d 100644 --- a/lib/fog/aws/requests/dns/change_resource_record_sets.rb +++ b/lib/fog/aws/requests/dns/change_resource_record_sets.rb @@ -222,9 +222,9 @@ module Fog end def self.hosted_zone_for_alias_target(dns_name) - elb_hosted_zone_mapping.select { |k, _| + Hash[elb_hosted_zone_mapping.select { |k, _| dns_name =~ /\A.+\.#{k}\.elb\.amazonaws\.com\.?\z/ - }.values.last + }].values.last end def self.elb_hosted_zone_mapping