summaryrefslogtreecommitdiff
path: root/boto/ec2containerservice/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/ec2containerservice/__init__.py')
-rw-r--r--boto/ec2containerservice/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/boto/ec2containerservice/__init__.py b/boto/ec2containerservice/__init__.py
index b7abb19e..136082d1 100644
--- a/boto/ec2containerservice/__init__.py
+++ b/boto/ec2containerservice/__init__.py
@@ -21,6 +21,7 @@
# IN THE SOFTWARE.
#
from boto.regioninfo import get_regions
+from boto.regioninfo import connect
def regions():
@@ -36,7 +37,6 @@ def regions():
def connect_to_region(region_name, **kw_params):
- for region in regions():
- if region.name == region_name:
- return region.connect(**kw_params)
- return None
+ from boto.ec2containerservice.layer1 import EC2ContainerServiceConnection
+ return connect('ec2containerservice', region_name,
+ connection_cls=EC2ContainerServiceConnection, **kw_params)