#2800 - CognitoIdentity - Fix format of Identity ID
This commit is contained in:
parent
7419f527d4
commit
280db9df6c
3 changed files with 7 additions and 6 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue