aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-12-28 14:55:01 -0600
committerTom Ritter <tom@ritter.vg>2016-12-28 14:59:15 -0600
commit9680fee0cbd51cec36f1db64648132f82bc33203 (patch)
tree7c7ee4debfc1b317cde5d038017315a9e6a1898c
parent3e85f1d0d48f0fb65a83af6ce3fb4b6a08f0bb1a (diff)
Change the statename to base64 instead of sha1 for debugging purposes.
-rwxr-xr-xjobs/JobBase.py4
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):