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:
Likitha Shetty 2013-06-28 09:43:42 +05:30
parent 96d466dcd7
commit cefd70e711
1 changed files with 1 additions and 1 deletions

View File

@ -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: