Cleanup the default region backends.

This commit is contained in:
Steve Pulec 2014-11-15 14:21:58 -05:00
commit 1f8253a1a1
12 changed files with 17 additions and 18 deletions

View file

@ -1,7 +1,9 @@
from __future__ import unicode_literals
from .models import ec2_backend, ec2_backends # flake8: noqa
from .models import ec2_backends
from ..core.models import MockAWS
ec2_backend = ec2_backends['us-east-1']
def mock_ec2(func=None):
if func:

View file

@ -2337,5 +2337,3 @@ class EC2Backend(BaseBackend, InstanceBackend, TagBackend, AmiBackend,
ec2_backends = {}
for region in boto.ec2.regions():
ec2_backends[region.name] = EC2Backend()
ec2_backend = ec2_backends['us-east-1']