Fix for moto not unmocking.
- Fixes #2575 - Also upgraded Travis CI to make use of Bionic instead of Xenial - This may also address concerns raised in #1793
This commit is contained in:
parent
6922606398
commit
bd777cad44
5 changed files with 31 additions and 28 deletions
|
|
@ -524,7 +524,7 @@ def _get_account_id():
|
|||
global account_id
|
||||
if account_id:
|
||||
return account_id
|
||||
sts = boto3.client("sts")
|
||||
sts = boto3.client("sts", region_name=region)
|
||||
identity = sts.get_caller_identity()
|
||||
account_id = identity["Account"]
|
||||
return account_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue