From 43c3fca3e9e3351718b74eaa08e782d2777450cc Mon Sep 17 00:00:00 2001 From: Richard Megginson Date: Tue, 1 Feb 2022 10:04:02 -0700 Subject: [PATCH] fix python black errors (#107) --- module_utils/certificate_lsr/providers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_utils/certificate_lsr/providers/base.py b/module_utils/certificate_lsr/providers/base.py index 3b37467..cdd5b9f 100644 --- a/module_utils/certificate_lsr/providers/base.py +++ b/module_utils/certificate_lsr/providers/base.py @@ -109,14 +109,14 @@ def _decode_krb5principalname(data): str(principal["realm"]).replace("\\", "\\\\").replace("@", "\\@") ) name = principal["principalName"]["name-string"] - name = u"/".join( + name = "/".join( to_text(str(n)) .replace("\\", "\\\\") .replace("/", "\\/") .replace("@", "\\@") for n in name ) - name = u"%s@%s" % (name, realm) + name = "%s@%s" % (name, realm) return name