1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-27 03:21:29 +03:00

feature-#239: amazon-ec2 gem used by econe tools use just server for authentication (not the port)

This commit is contained in:
Tino Vázquez 2010-05-13 17:11:13 +02:00
parent d29c26b1ca
commit b6e37fbcb2

View File

@ -116,8 +116,12 @@ class EC2QueryServer < CloudServer
signature_params = params.reject { |key,value|
key=='Signature' or key=='file' }
server_str = @server_host
server_str = server_str + ":" + @server_port if params["Version"] != "2008-12-01"
canonical_str = AWS.canonical_string(signature_params,
@server_host + ":" + @server_port,
server_str,
env['REQUEST_METHOD'])
# Use the correct signature strength