From 8aa8bab7f03e407556482304451f1e277c6285e7 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 8 Sep 2020 00:36:58 -0400 Subject: base64 encode requires bytes --- jobs/JobBase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jobs') 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): -- cgit v1.2.3