summaryrefslogtreecommitdiff
path: root/jobs/JobBase.py
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-xjobs/JobBase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py
index 295c705..7f8fbc9 100755
--- a/jobs/JobBase.py
+++ b/jobs/JobBase.py
@@ -33,7 +33,8 @@ class JobFailureCountMinimumBeforeNotification(object):
class JobBase(object):
def __init__(self, config, *args):
self.config = config
- self.stateName = base64.b64encode(self.getName() + "|" + "|".join([str(a) for a in args]))
+ statename = self.getName() + "|" + "|".join([str(a) for a in args])
+ self.stateName = base64.b64encode(statename.encode("utf-8")).decode("utf-8")
""" Return a friendly name to identify this Job"""
def getName(self):