Skip to content

Commit

Permalink
fix python black errors (linux-system-roles#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
richm authored Feb 1, 2022
1 parent 96247c3 commit 43c3fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module_utils/certificate_lsr/providers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 43c3fca

Please sign in to comment.