Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Merge branch 'backfill-sec-token' into develop
Browse files Browse the repository at this point in the history
Fixes #1989, #1942.
  • Loading branch information
toastdriven committed Jan 21, 2014
2 parents 49045bc + 88034dc commit 2b72f32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion boto/ecs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ class ECSConnection(AWSQueryConnection):
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
is_secure=True, port=None, proxy=None, proxy_port=None,
proxy_user=None, proxy_pass=None, host='ecs.amazonaws.com',
debug=0, https_connection_factory=None, path='/', profile_name=None):
debug=0, https_connection_factory=None, path='/',
security_token=None, profile_name=None):
super(ECSConnection, self).__init__(aws_access_key_id, aws_secret_access_key,
is_secure, port, proxy, proxy_port, proxy_user, proxy_pass,
host, debug, https_connection_factory, path,
security_token=security_token,
profile_name=profile_name)

def _required_auth_capability(self):
Expand Down
7 changes: 5 additions & 2 deletions boto/mturk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
is_secure=True, port=None, proxy=None, proxy_port=None,
proxy_user=None, proxy_pass=None,
host=None, debug=0,
https_connection_factory=None, profile_name=None):
https_connection_factory=None, security_token=None,
profile_name=None):
if not host:
if config.has_option('MTurk', 'sandbox') and config.get('MTurk', 'sandbox') == 'True':
host = 'mechanicalturk.sandbox.amazonaws.com'
Expand All @@ -58,7 +59,9 @@ def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
aws_secret_access_key,
is_secure, port, proxy, proxy_port,
proxy_user, proxy_pass, host, debug,
https_connection_factory, profile_name=profile_name)
https_connection_factory,
security_token=security_token,
profile_name=profile_name)

def _required_auth_capability(self):
return ['mturk']
Expand Down

0 comments on commit 2b72f32

Please sign in to comment.