incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 2/2] EC2: do not modify env variables EC2_URL and S3_URL
Date Mon, 18 Apr 2011 22:35:00 GMT
From: David Lutterkort <lutter@redhat.com>

Setting these variables to the empty string caused the aws gem to issue
invalid signatures on requests.

This issue was introduced in commit b8e725c6
---
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index dd67422..83054c2 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -537,8 +537,6 @@ module Deltacloud
         end
 
         def endpoint_for_service(service)
-          ENV['EC2_URL']=''  # unset endpoints that may have been set by eucalyptus; otherwise
it can conflict with the EC2/S3 endpoints in aws gem.
-          ENV['S3_URL']=''
           endpoint = (Thread.current[:provider] || ENV['API_PROVIDER'] || DEFAULT_REGION)
           # return the endpoint if it does not map to a default endpoint, allowing
           # the endpoint to be a full hostname instead of a region.
-- 
1.7.4.4


Mime
View raw message