Commit 4ba51eef by James Tanner

Save comment hashes in sshkeys

parent 16b22d0d
......@@ -218,6 +218,7 @@ def parsekey(raw_key):
# split key safely
lex = shlex.shlex(raw_key)
lex.quotes = ["'", '"']
lex.commenters = '' #keep comment hashes
lex.whitespace_split = True
key_parts = list(lex)
......
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