Cleanup the default region backends.
This commit is contained in:
parent
2a61ef6f91
commit
1f8253a1a1
12 changed files with 17 additions and 18 deletions
|
|
@ -1,7 +1,9 @@
|
|||
from __future__ import unicode_literals
|
||||
from .models import cloudformation_backends, cloudformation_backend # flake8: noqa
|
||||
from .models import cloudformation_backends
|
||||
from ..core.models import MockAWS
|
||||
|
||||
cloudformation_backend = cloudformation_backends['us-east-1']
|
||||
|
||||
|
||||
def mock_cloudformation(func=None):
|
||||
if func:
|
||||
|
|
|
|||
|
|
@ -101,5 +101,3 @@ class CloudFormationBackend(BaseBackend):
|
|||
cloudformation_backends = {}
|
||||
for region in boto.cloudformation.regions():
|
||||
cloudformation_backends[region.name] = CloudFormationBackend()
|
||||
|
||||
cloudformation_backend = cloudformation_backends['us-east-1']
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ class ResourceMap(collections.Mapping):
|
|||
self[resource]
|
||||
if isinstance(self[resource], ec2_models.TaggedEC2Resource):
|
||||
tags['aws:cloudformation:logical-id'] = resource
|
||||
ec2_models.ec2_backend.create_tags([self[resource].physical_resource_id], tags)
|
||||
ec2_models.ec2_backends[self._region_name].create_tags([self[resource].physical_resource_id], tags)
|
||||
|
||||
|
||||
class OutputMap(collections.Mapping):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue