Commit 7be13faa by James Tanner

Fix comment yaml escaping in authorized_key module

parent 82c9f5bf
......@@ -215,6 +215,9 @@ def parsekey(raw_key):
key_type = None # type of ssh key
type_index = None # index of keytype in key string|list
# remove comment yaml escapes
raw_key = raw_key.replace('\#', '#')
# split key safely
lex = shlex.shlex(raw_key)
lex.quotes = ["'", '"']
......
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