Allow service-invocations without region (S3, e.g.)
This commit is contained in:
parent
389939bf8a
commit
f963d2ebaa
@ -470,7 +470,7 @@ class ServerModeMockAWS(BaseMockAWS):
|
||||
def _get_region(self, *args, **kwargs):
|
||||
if "region_name" in kwargs:
|
||||
return kwargs["region_name"]
|
||||
if type(args) == tuple:
|
||||
if type(args) == tuple and len(args) == 2:
|
||||
service, region = args
|
||||
return region
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user