Skip to content

Commit

Permalink
Merge pull request #112 from 4dn-dcic/replace-requests
Browse files Browse the repository at this point in the history
replace request with get_metadata
  • Loading branch information
sbreiff authored Jul 24, 2018
2 parents 5974344 + cdebb9b commit 71101a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wranglertools/import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,8 +1099,8 @@ def format_file(param, files, connection):
template = {"bucket_name": "",
"workflow_argument_name": param.split('--')[-1]}
# find bucket
health_page = requests.get(connection.server + 'health', auth=connection.auth, headers=connection.headers)
bucket_main = health_page.json().get('file_upload_bucket')
health_page = ff_utils.get_metadata('health', key=connection.key)
bucket_main = health_page.get('file_upload_bucket')
resp = {}
# if it is a list of files, uuid and object key are list objects
if isinstance(files, list):
Expand Down

0 comments on commit 71101a9

Please sign in to comment.