diff --git a/lib/common/helpers.py b/lib/common/helpers.py index eba12b7..a0d0bf2 100644 --- a/lib/common/helpers.py +++ b/lib/common/helpers.py @@ -155,10 +155,10 @@ def random_string(length=-1, charset=string.ascii_letters): def generate_random_script_var_name(origvariname,globDebug=False): if globDebug: - hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest() - return hash_object[:-datetime.datetime.today().day] - else: return origvariname + else: + hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest() + return hash_object[:-datetime.datetime.today().day] def randomize_capitalization(data): """