Commit b83bfd0d authored by Mike Smith's avatar Mike Smith

Convert str to bytes for sshkey_entry

parent ce5ed08a
......@@ -314,7 +314,7 @@ class FilesSshkeyMapHandler(FilesCache):
Number of bytes written to the target.
"""
sshkey_entry = '%s:%s' % (entry.name, entry.sshkey)
target.write(sshkey_entry + '\n')
target.write(sshkey_entry.encode() + b'\n')
return len(sshkey_entry) + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment