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

Ruby 1.8.7 support

This commit is contained in:
Matthew O'Riordan 2015-03-13 11:16:56 +00:00
parent e6640f337b
commit 011b1f071c

View file

@ -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