Skip to content

Commit

Permalink
Merge pull request #14 from NickolausDS/globus-token-fix
Browse files Browse the repository at this point in the history
Fixed bug for fetching files on Globus Endpoint
  • Loading branch information
mikedarcy authored Dec 12, 2017
2 parents a87ef58 + add77de commit e9fdd9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bdbag/fetch/transports/fetch_globus.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def get_file(url, output_path, auth_config, token=None, dest_endpoint=None):
return False

# initialize transfer client
client = globus_sdk.TransferClient(token=token)
authorizer = globus_sdk.AccessTokenAuthorizer(token)
client = globus_sdk.TransferClient(authorizer=authorizer)

# Activate source endpoint
logger.debug("Activating source endpoint: %s" % src_endpoint)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'requests',
'certifi',
'bagit==1.6.2',
'globus-sdk'],
'globus-sdk==1.3.0'],
license='Apache 2.0',
classifiers=[
'Intended Audience :: Science/Research',
Expand Down

0 comments on commit e9fdd9d

Please sign in to comment.