From 9680fee0cbd51cec36f1db64648132f82bc33203 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Wed, 28 Dec 2016 14:55:01 -0600 Subject: Change the statename to base64 instead of sha1 for debugging purposes. --- jobs/JobBase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jobs') diff --git a/jobs/JobBase.py b/jobs/JobBase.py index 6b47eb7..d7ec2a1 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -2,7 +2,7 @@ import time import random -import hashlib +import base64 import logging import datetime @@ -29,7 +29,7 @@ class JobFailureCountMinimumBeforeNotification: class JobBase(object): def __init__(self, config, *args): self.config = config - self.stateName = hashlib.sha1(self.getName() + "|" + "|".join([str(a) for a in args])).hexdigest() + self.stateName = base64.b64encode(self.getName() + "|" + "|".join([str(a) for a in args])) """ Return a friendly name to identify this Job""" def getName(self): -- cgit v1.2.3