From f1227e396a89b68ccdd8973ca49aae4f47c09eb4 Mon Sep 17 00:00:00 2001 From: Rory-Finnegan Date: Thu, 4 Sep 2014 10:31:05 -0400 Subject: [PATCH] Fixed stupid "random_alphanumeric" typo that got repeated due to tab completion. --- moto/iam/models.py | 4 ++-- moto/iam/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/iam/models.py b/moto/iam/models.py index 8857abef..8e072f20 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from boto.exception import BotoServerError 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 @@ -71,7 +71,7 @@ class AccessKey(object): def __init__(self, user_name): self.user_name = user_name 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.create_date = datetime.strftime( datetime.utcnow(), diff --git a/moto/iam/utils.py b/moto/iam/utils.py index db383521..14038b5f 100644 --- a/moto/iam/utils.py +++ b/moto/iam/utils.py @@ -4,7 +4,7 @@ import string import six -def random_alhpnumeric(length): +def random_alphanumeric(length): return ''.join(six.text_type( random.choice( string.ascii_letters + string.digits