summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2020-09-08 00:36:58 -0400
committerTom Ritter <tom@ritter.vg>2020-09-08 00:42:26 -0400
commit8aa8bab7f03e407556482304451f1e277c6285e7 (patch)
treedd15702fb112f0bd8c4ac1e1754c07c25c69f18c
parenta1d04b6d5d6ff590042016b35b4c727c0c3e3b9e (diff)
base64 encode requires bytes
-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):