mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1444. Fixing cloudstack-aws-api-register to set ec2 api version to the latest.
[Support for EC2 API version 2012-08-15]
This commit is contained in:
parent
96d466dcd7
commit
cefd70e711
|
|
@ -40,7 +40,7 @@ def get_signature(key, url, query):
|
|||
|
||||
def get_url(url, api_key, secret_key, action, query):
|
||||
amzn_string = 'AWSAccessKeyId=' + api_key + '&Action=' + action + '&SignatureMethod=HmacSHA1'
|
||||
amzn_string += '&SignatureVersion=2&Timestamp='+ datetime.now().isoformat()[:19] +'Z&Version=2010-11-15'
|
||||
amzn_string += '&SignatureVersion=2&Timestamp='+ datetime.now().isoformat()[:19] +'Z&Version=2012-08-15'
|
||||
query = amzn_string + '&' + query
|
||||
url = url + '?' + query + '&Signature=' + get_signature(secret_key, url, query)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue