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

Fix ::AWS[] syntax that's only valid in Fog tests when bin/aws.rb is loaded

This commit is contained in:
Blake Gentry 2011-07-14 16:28:59 -07:00
parent 5ef3032294
commit e76fb9e4ac
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ module Fog
raise Fog::AWS::ELB::IdentifierTaken if self.data[:load_balancers].has_key? lb_name
certificate_ids = ::AWS[:iam].list_server_certificates.body['Certificates'].collect { |c| c['Arn'] }
certificate_ids = Fog::AWS::IAM.new.list_server_certificates.body['Certificates'].collect { |c| c['Arn'] }
listeners = [*listeners].map do |listener|
if listener['SSLCertificateId'] and !certificate_ids.include? listener['SSLCertificateId']

View file

@ -52,7 +52,7 @@ module Fog
if load_balancer = self.data[:load_balancers][lb_name]
response = Excon::Response.new
certificate_ids = ::AWS[:iam].list_server_certificates.body['Certificates'].collect { |c| c['Arn'] }
certificate_ids = Fog::AWS::IAM.new.list_server_certificates.body['Certificates'].collect { |c| c['Arn'] }
listeners.each do |listener|
if listener['SSLCertificateId'] and !certificate_ids.include? listener['SSLCertificateId']