Merge pull request #1859 from georgealton/master

Fixes #1857 Ensures a UserPool Id starts like {region}_
This commit is contained in:
Steve Pulec 2018-10-15 00:08:49 -04:00 committed by GitHub
commit cb5bf5051b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ class CognitoIdpUserPool(BaseModel):
def __init__(self, region, name, extended_config):
self.region = region
self.id = str(uuid.uuid4())
self.id = "{}_{}".format(self.region, str(uuid.uuid4().hex))
self.name = name
self.status = None
self.extended_config = extended_config or {}