Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK:419 : Adding support for passing extra arguments for boto's conne… #332

Open
wants to merge 1 commit into
base: unreleased
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions qds_sdk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def get_jobs_id(cls, id):
return r.text


def get_results(self, fp=sys.stdout, inline=True, delim=None, fetch=True, qlog=None, arguments=[]):
def get_results(self, fp=sys.stdout, inline=True, delim=None, fetch=True, qlog=None, arguments=[], boto_args={}):
"""
Fetches the result for the command represented by this object

Expand Down Expand Up @@ -307,7 +307,8 @@ def get_results(self, fp=sys.stdout, inline=True, delim=None, fetch=True, qlog=N
boto_conn = boto.connect_s3(aws_access_key_id=storage_credentials['storage_access_key'],
aws_secret_access_key=storage_credentials['storage_secret_key'],
security_token=storage_credentials['session_token'],
host=host)
host=host,
**boto_args)
log.info("Starting download from result locations: [%s]" % ",".join(r['result_location']))
# fetch latest value of num_result_dir
num_result_dir = Command.find(self.id).num_result_dir
Expand Down