Fixed stupid "random_alphanumeric" typo that got repeated due to tab completion.

This commit is contained in:
Rory-Finnegan 2014-09-04 10:31:05 -04:00
parent c2dd4a7ee4
commit f1227e396a
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ from __future__ import unicode_literals
from boto.exception import BotoServerError from boto.exception import BotoServerError
from moto.core import BaseBackend from moto.core import BaseBackend
from .utils import random_access_key, random_alhpnumeric, random_resource_id from .utils import random_access_key, random_alphanumeric, random_resource_id
from datetime import datetime from datetime import datetime
@ -71,7 +71,7 @@ class AccessKey(object):
def __init__(self, user_name): def __init__(self, user_name):
self.user_name = user_name self.user_name = user_name
self.access_key_id = random_access_key() self.access_key_id = random_access_key()
self.secret_access_key = random_alhpnumeric(32) self.secret_access_key = random_alphanumeric(32)
self.status = 'Active' self.status = 'Active'
self.create_date = datetime.strftime( self.create_date = datetime.strftime(
datetime.utcnow(), datetime.utcnow(),

View File

@ -4,7 +4,7 @@ import string
import six import six
def random_alhpnumeric(length): def random_alphanumeric(length):
return ''.join(six.text_type( return ''.join(six.text_type(
random.choice( random.choice(
string.ascii_letters + string.digits string.ascii_letters + string.digits