bug #1114: econe client should set the default path '/' if not specified

This commit is contained in:
Daniel Molina committed 2012-02-09 17:40:21 +01:00
1 parent 03ddf136b7
commit 68fe3f91cf
1 file changed
+2 -1
+2 -1
View File
@@ -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