1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Daniel Molina 2012-02-09 17:40:21 +01:00
parent 03ddf136b7
commit 68fe3f91cf

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