diff options
author | JordonPhillips <phjordon@amazon.com> | 2017-06-02 16:24:58 -0700 |
---|---|---|
committer | JordonPhillips <phjordon@amazon.com> | 2017-06-02 16:29:57 -0700 |
commit | efe789f69a9501962a0e738e020a02fb6d11ae19 (patch) | |
tree | 766347fc450443ac5a30b34a571e74d3db80e771 /boto/regioninfo.py | |
parent | af045f93d70fbb4cdac2a8e57d040ce59935d45b (diff) | |
download | boto-efe789f69a9501962a0e738e020a02fb6d11ae19.tar.gz |
Use RegionInfo by default with heuristics
Diffstat (limited to 'boto/regioninfo.py')
-rw-r--r-- | boto/regioninfo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/boto/regioninfo.py b/boto/regioninfo.py index caf1b6e7..d840bc61 100644 --- a/boto/regioninfo.py +++ b/boto/regioninfo.py @@ -205,6 +205,8 @@ def connect(service_name, region_name, region_cls=None, :returns: A configured connection class. """ + if region_cls is None: + region_cls = RegionInfo region = _get_region(service_name, region_name, region_cls, connection_cls) if region is None and _use_endpoint_heuristics(): |