Cloudwatch support multiple regions

This commit is contained in:
beeva-antonioirizar 2016-02-18 18:35:32 +01:00
commit 4bbd2a11a7
3 changed files with 21 additions and 4 deletions

View file

@ -1,2 +1,11 @@
from .models import cloudwatch_backend
mock_cloudwatch = cloudwatch_backend.decorator
from .models import cloudwatch_backends
from ..core.models import MockAWS
cloudwatch_backend = cloudwatch_backends['us-east-1']
def mock_cloudwatch(func=None):
if func:
return MockAWS(cloudwatch_backends)(func)
else:
return MockAWS(cloudwatch_backends)