Skip to content

Commit b19b549

Browse files
author
Likitha Shetty
committed
CLOUDSTACK-1444. Fixing cloudstack-aws-api-register to set ec2 api version to the latest. [Support for EC2 API version 2012-08-15]
Signed-off-by: Likitha Shetty <likitha.shetty@citrix.com>
1 parent a0a5f67 commit b19b549

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎awsapi-setup/setup/cloudstack-aws-api-register‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_signature(key, url, query):
4040

4141
def get_url(url, api_key, secret_key, action, query):
4242
amzn_string = 'AWSAccessKeyId=' + api_key + '&Action=' + action + '&SignatureMethod=HmacSHA1'
43-
amzn_string += '&SignatureVersion=2&Timestamp='+ datetime.now().isoformat()[:19] +'Z&Version=2010-11-15'
43+
amzn_string += '&SignatureVersion=2&Timestamp='+ datetime.now().isoformat()[:19] +'Z&Version=2012-08-15'
4444
query = amzn_string + '&' + query
4545
url = url + '?' + query + '&Signature=' + get_signature(secret_key, url, query)
4646
try:

0 commit comments

Comments
 (0)