| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When no region is provided, resolve it from the boto3 session using standard credential/config chain resolution (env vars, config file, EC2 instance metadata, etc.) instead of requiring an explicit string. This lets callers omit region when their environment already configures it. Fixes aws#511
Codecov Report❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #523 +/- ##
=======================================
Coverage ? 89.38%
=======================================
Files ? 98
Lines ? 8582
Branches ? 1273
=======================================
Hits ? 7671
Misses ? 586
Partials ? 325
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
CodeInterpreter.__init__ and code_session() required an explicit region string, making callers responsible for extracting the region even when they already have a configured boto3 session or standard AWS environment variables in place.
This PR makes region optional (defaults to None). When omitted, the region is resolved from the boto3 session via its standard chain (environment variables, config file, instance metadata, etc.). The session is created first (if not supplied), then the region is read from session.region_name.
Existing callers passing an explicit region string are unaffected.
Fixes #511
Changes