From aa910a214fb73b4050e01e74e541bbdf0c823585 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Thu, 5 Jun 2014 17:35:16 -0300 Subject: [PATCH] avocado.utils.crypto: Fix return value of get_random_string --- avocado/utils/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avocado/utils/crypto.py b/avocado/utils/crypto.py index 95bae18f..1a7ac484 100644 --- a/avocado/utils/crypto.py +++ b/avocado/utils/crypto.py @@ -48,7 +48,7 @@ def get_random_string(length, ignore_str=string.punctuation, tmp = "\\%s" % tmp result += tmp length -= 1 - return str + return result def hash_wrapper(algorithm='md5', data=None): -- GitLab