diff options
author | Tom Ritter <tom@ritter.vg> | 2016-12-28 14:55:01 -0600 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-12-28 14:59:15 -0600 |
commit | 9680fee0cbd51cec36f1db64648132f82bc33203 (patch) | |
tree | 7c7ee4debfc1b317cde5d038017315a9e6a1898c /jobs/JobBase.py | |
parent | 3e85f1d0d48f0fb65a83af6ce3fb4b6a08f0bb1a (diff) |
Change the statename to base64 instead of sha1 for debugging purposes.
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-x | jobs/JobBase.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |