Merge pull request #2864 from bblommers/bugfix/2800

CognitoIdentity - Fix Format of Identity ID
This commit is contained in:
Steve Pulec 2020-04-25 18:39:43 -05:00 committed by GitHub
commit 365a2d140b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
from moto.core.utils import get_random_hex
from uuid import uuid4
def get_random_identity_id(region):
return "{0}:{1}".format(region, get_random_hex(length=19))
return "{0}:{1}".format(region, uuid4())