summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/azure/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/azure/errors.py b/cloudinit/sources/azure/errors.py
index 0dd426a7..1a452635 100644
--- a/cloudinit/sources/azure/errors.py
+++ b/cloudinit/sources/azure/errors.py
@@ -87,7 +87,7 @@ class ReportableErrorUnhandledException(ReportableError):
type(exception), exception, exception.__traceback__
)
)
- trace_base64 = base64.b64encode(trace.encode("utf-8"))
+ trace_base64 = base64.b64encode(trace.encode("utf-8")).decode("utf-8")
self.supporting_data["exception"] = repr(exception)
self.supporting_data["traceback_base64"] = trace_base64