We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4347d57 + c8ea710 commit 144a8f4Copy full SHA for 144a8f4
awswrangler/_utils.py
@@ -21,7 +21,9 @@ def ensure_session(session: Optional[boto3.Session] = None) -> boto3.Session:
21
"""Ensure that a valid boto3.Session will be returned."""
22
if session is not None:
23
return session
24
- return boto3.Session()
+ # Ensure the boto3's default session is used so that its parameters can be
25
+ # set via boto3.setup_default_session()
26
+ return boto3._get_default_session() # pylint: disable=protected-access
27
28
29
def client(service_name: str, session: Optional[boto3.Session] = None) -> boto3.client:
0 commit comments