File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55
66from boto3 import Session
77from botocore .credentials import RefreshableCredentials
8+ from botocore .session import get_session
89from tqdm import tqdm
910
1011from pubweb .models .auth import Creds
@@ -91,12 +92,13 @@ def _build_session_client(self):
9192 creds = self ._creds_getter ()
9293
9394 if creds ['Expiration' ]:
94- session = Session ()
95+ session = get_session ()
9596 session ._credentials = RefreshableCredentials .create_from_metadata (
9697 metadata = format_creds_for_session (creds ),
97- refresh_using = self ._refresh_credentials () ,
98+ refresh_using = self ._refresh_credentials ,
9899 method = 'sts'
99100 )
101+ session = Session (botocore_session = session )
100102 else :
101103 session = Session (
102104 aws_access_key_id = creds ['AccessKeyId' ],
Original file line number Diff line number Diff line change 3333
3434setup (
3535 name = 'pubweb' ,
36- version = '0.3.3 ' ,
36+ version = '0.3.4 ' ,
3737 author = 'Fred Hutch' ,
3838 license = 'MIT' ,
3939
You can’t perform that action at this time.
0 commit comments