Skip to content

Commit

Permalink
use gocurl from CVMFS Fix #6822 (#6824)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Oct 28, 2021
1 parent 16a275f commit 06cdc5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/ServerUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def uploadToS3ViaPSU (filepath=None, preSignedUrlFields=None, logger=None):
# CRAB_useGoCurl env. variable is used to define how upload to S3 command should be executed.
# If variable is set, then goCurl is used for command execution: https://github.com/vkuznet/gocurl
if os.getenv('CRAB_useGoCurl'):
uploadCommand += '/afs/cern.ch/user/v/valya/public/gocurl -verbose 2 -method POST'
uploadCommand += '/cvmfs/cms.cern.ch/cmsmon/gocurl -verbose 2 -method POST'
uploadCommand += ' -header "User-Agent:%s"' % userAgent
uploadCommand += ' -form "key=%s"' % key
uploadCommand += ' -form "AWSAccessKeyId=%s"' % AWSAccessKeyId
Expand Down Expand Up @@ -858,7 +858,7 @@ def downloadFromS3ViaPSU(filepath=None, preSignedUrl=None, logger=None):
# CRAB_useGoCurl env. variable is used to define how download from S3 command should be executed.
# If variable is set, then goCurl is used for command execution: https://github.com/vkuznet/gocurl
if os.getenv('CRAB_useGoCurl'):
downloadCommand += '/afs/cern.ch/user/v/valya/public/gocurl -verbose 2 -method GET'
downloadCommand += '/cvmfs/cms.cern.ch/cmsmon/gocurl -verbose 2 -method GET'
downloadCommand += ' -out "%s"' % filepath
downloadCommand += ' -url "%s"' % preSignedUrl
else:
Expand Down

0 comments on commit 06cdc5b

Please sign in to comment.