From 68fe3f91cf686f24a4b8a7dbe50adf4789f211a1 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 9 Feb 2012 17:40:21 +0100 Subject: [PATCH] bug #1114: econe client should set the default path '/' if not specified --- src/cloud/ec2/lib/EC2QueryClient.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cloud/ec2/lib/EC2QueryClient.rb b/src/cloud/ec2/lib/EC2QueryClient.rb index 96a0da7d6f..b80c44ecd8 100644 --- a/src/cloud/ec2/lib/EC2QueryClient.rb +++ b/src/cloud/ec2/lib/EC2QueryClient.rb @@ -70,6 +70,7 @@ module EC2QueryClient end @uri = URI.parse(endpoint) + path = @uri.path.empty? ? '/' : @uri.path @ec2_connection = AWS::EC2::Base.new( :access_key_id => @access_key_id, @@ -77,7 +78,7 @@ module EC2QueryClient :server => @uri.host, :port => @uri.port, :use_ssl => @uri.scheme == 'https', - :path => @uri.path) + :path => path) end