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:
parent
03ddf136b7
commit
68fe3f91cf
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user