Merge pull request #2251 from acsbendi/random_suffix_fix

Fixed random_suffix()
This commit is contained in:
Steve Pulec 2019-07-01 21:03:36 -05:00 committed by GitHub
commit 8a5ccf7dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ import six
import random
import yaml
import os
import string
from cfnlint import decode, core
@ -29,7 +30,7 @@ def generate_stackset_arn(stackset_id, region_name):
def random_suffix():
size = 12
chars = list(range(10)) + ['A-Z']
chars = list(range(10)) + list(string.ascii_uppercase)
return ''.join(six.text_type(random.choice(chars)) for x in range(size))