Skip to content

Commit

Permalink
CLOUDSTACK-1444. Fixing cloudstack-aws-api-register to set ec2 api ve…
Browse files Browse the repository at this point in the history
…rsion to the latest. [Support for EC2 API version 2012-08-15]

Signed-off-by: Likitha Shetty <likitha.shetty@citrix.com>
  • Loading branch information
Likitha Shetty committed Jul 4, 2013
1 parent 3cfaa92 commit 7a80031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awsapi-setup/setup/cloudstack-aws-api-register
Expand Up @@ -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:
Expand Down

0 comments on commit 7a80031

Please sign in to comment.