File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 104
104
from sarracenia .flowcb import FlowCB
105
105
import boto3
106
106
from botocore .exceptions import ClientError
107
+ from urllib .parse import unquote
107
108
108
109
logger = logging .getLogger (__name__ )
109
110
@@ -167,6 +168,9 @@ def __init__(self, options):
167
168
self .s3_url = "https://" + netloc [1 ] if not (type (netloc [1 ]) == str and netloc [1 ] == "None" ) else None
168
169
self .access_key_id = usr_pwd [0 ] if not (type (usr_pwd [0 ]) == str and usr_pwd [0 ] == "None" ) else None
169
170
self .secret_access_key = usr_pwd [1 ] if not (type (usr_pwd [1 ]) == str and usr_pwd [1 ] == "None" ) else None
171
+ if self .secret_access_key :
172
+ # sometimes the key will have a slash in it, in that case, the slash should be changed to %2F in credentials.conf
173
+ self .secret_access_key = unquote (self .secret_access_key )
170
174
171
175
logger .info (f"Successfully loaded credentials for sendTo URL { self .o .sendTo } " )
172
176
You can’t perform that action at this time.
0 commit comments