#2800 - CognitoIdentity - Fix format of Identity ID

This commit is contained in:
Bert Blommers 2020-04-04 14:09:38 +01:00
commit 280db9df6c
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())